25.09.2014, 21:49
I dont know what you are using and that "ShowPlayerDialog" at the end is just ... wrong. Here's a small fix
If you need more help, provided a little bit more code.
pawn Код:
if(dialogid == DIALOG_ARMY)
{
if(!response)
{
SendClientMessageEx(playerid, COLOR_WHITE, "SERVER: You have been kicked out of the server because you failed to respond.");
Kick(playerid);
}
switch(listitem)
{
case 0:
{
SetPlayerTeam(playerid,1);
SetPlayerSkin(playerid,287);
}
case 1:
{
SetPlayerTeam(playerid,2);
SetPlayerSkin(playerid,285);
}
}