03.09.2011, 17:02
Mais tipo, eu posso deletar o comando
e recriar assim:
pawn Код:
if(strcmp(cmd, "/autoescola", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(2.0, playerid, 1173.6765,1351.0183,10.9219))
{
new listitems[] = "1\tR$500 Motorista\n2\tR$3500 Aйrea\n3\tR$3000 Nбutica\n4\tR$400 Pesca\n5\tR$1200 Porte de Armas\n";
ShowPlayerDialog(playerid,510,DIALOG_STYLE_LIST,"Lista de Testes:",listitems,"Confirmar","Sair");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo estб na Auto Escola!");
}
}
return 1;
}
pawn Код:
{
if(newkeys==KEY_SECONDARY_ATTACK)//-- LETRA "F"
{
if(strcmp(cmd, "/autoescola", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(2.0, playerid, 1173.6765,1351.0183,10.9219))
{
new listitems[] = "1\tR$500 Motorista\n2\tR$3500 Aйrea\n3\tR$3000 Nбutica\n4\tR$400 Pesca\n5\tR$1200 Porte de Armas\n";
ShowPlayerDialog(playerid,510,DIALOG_STYLE_LIST,"Lista de Testes:",listitems,"Confirmar","Sair");
}
else
{
}
return true;
}