10.02.2011, 23:47
Estou com um problema em um comando que й para ser execultado somente no checkpoint. Mas ele tб execultando fora do checkpoint.
Comando:
Comando:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/loja", cmdtext, true, 10) == 0)
{
new aname[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, aname, sizeof(aname));
format(string, sizeof(string), "[SERVER]» O player %s estб comprando armas na loja do ammu. (/ammu)", aname,playerid);
SendClientMessageToAll(0x80FF80AA,string);
ShowPlayerDialog(playerid,LOJA,DIALOG_STYLE_LIST,"Loja de Armas","9mm $2.000\nDesert Eagle $4.000\nShotgun $6.000\nSawn $6.500\nCombat Shotgun $7.000\nMicro SMG $8.400\nMP5 $9.000\nAK-47 $13.000\nM4 $15.000\nTec9 $8.500\nSniper Rifle $16.000","Comprar","Cancelar");
if(IsPlayerInCheckpoint(playerid)== cpcheck)
SendClientMessage(playerid,0x5BB700AA, "[INFO]para comprar armas use /loja");
}
else
SendClientMessage(playerid,0xFF0000AA ,"[INFO]Vocк nгo estб no checkpoint da Ammu Nation de Los Santos");
return 1;
}


