10.03.2011, 15:15
pawn Код:
if(!strcmp(cmd,"/comprarneon",true))
{
if(!IsPlayerInRangeOfPoint(playerid, 15.0, X,Y,Z)) return SendClientMessage(playerid, 0xFFFFFFAA, "vocк nгo estб em ...");
if(GetPVarInt(playerid,"CompreiNeon")==1) return SendClientMessage(playerid,0xFF0000AA,"Vocк jб tem um neon!");
if(GetPlayerMoney(playerid) >= 1500)
{
GivePlayerMoney(playerid,-1500);
SetPVarInt(playerid,"CompreiNeon",1);
SendClientMessage(playerid,0xFFFF00AA,"Vocк comprou um neon");
}
else
{
SendClientMessage(playerid,0xFF0000AA,"Vocк nгo tem $1500!");
}
return 1;
}