quarta-feira, 17 de julho de 2013

0 LS Bank

Screens:
















Code:
public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/exit", cmdtext, true, 6) == 0)
    {
    if(IsPlayerInRangeOfPoint(playerid,10,614.9377,-1513.0111,15.4176))
    {
    SetPlayerPos(playerid,615.8764,-1512.9479,15.3576);
    }
    return 1;
    }
    if (strcmp("/enter", cmdtext, true, 10) == 0)
    {
    if(IsPlayerInRangeOfPoint(playerid,10,615.8764,-1512.9479,15.3576))
    {
    SetPlayerPos(playerid,614.9377,-1513.0111,15.4176);
    }
    return 1;
    }
    return 1;
    }
 
Code:
#include <a_samp>
new MyBank;
new MyGreen;

public OnGameModeInit()
{
MyBank = CreateObject(19353, 615.4267, -1510.7165, 17.7816, 0.3999, 0.1000, -2.5601);
SetObjectMaterialText(MyBank, "Bank", 0, 50, "Arial Black", 25, 1, -16468988, 0, 1);


MyGreen = CreateObject(19353, 615.4053, -1514.9318, 17.7816, 0.0000, 0.0000, -0.2955);
SetObjectMaterialText(MyGreen, "Bank", 0, 50, "Arial Black", 25, 1, -16468988, 0, 1);
return 1;
}
 
 

0 comentários: