28.04.2014, 17:42
I want create a cmd dialog with PlayerToPoint .
But a 2 location is not work /takeguns
Why?
PHP код:
if(strcmp(cmd, "/takeguns", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
{
if (PlayerToPoint(3, playerid, 1208.9657,-27.8700,1000.9531))
{
ShowPlayerDialog(playerid,68,DIALOG_STYLE_LIST,"Take Guns","Silenced 9mm\nDesert Eagle\nMP5\nAK-47\nM4\nCombat Shotgun\nViata","Alege","Anuleaza");
}
}
else if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{
if (PlayerToPoint(3, playerid, 438.0905,1411.5494,1084.3047))
{
ShowPlayerDialog(playerid,77,DIALOG_STYLE_LIST,"Take Guns","Silenced 9mm\nDesert Eagle\nMP5\nAK-47\nM4\nCombat Shotgun\nViata","Alege","Anuleaza");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "Nu esti langa checkpoint-ul cu /takeguns!");
return 1;
}
}
return 1;
}
Why?