04.07.2011, 23:09
Hello guys,
I am starting with dialogs, and i made one to choise a team in a gm that i am making....
I setted all, and others work, but this one, is seting all, the color, and sending the write message, if we write terrorists, or counter terrorists, but it doesn't set the fucking skin...
Code:
Thank you...
Is it any return leack?
I am starting with dialogs, and i made one to choise a team in a gm that i am making....
I setted all, and others work, but this one, is seting all, the color, and sending the write message, if we write terrorists, or counter terrorists, but it doesn't set the fucking skin...
Code:
pawn Код:
if(dialogid == 6)
{
if(response)
{
new message[256+1];
if(listitem == 0)
{
format(message, 256, "You selected Terrorist", listitem);
SendClientMessage(playerid, 0xFFFFFFFF, message);
SpawnPlayer(playerid);
SetPlayerPos(playerid, 0.0, 0.0, 0.0);
SetPlayerColor(playerid, T_COLOR);
SetPlayerSkin(playerid, 222);
}
if(listitem == 1)
{
format(message, 256, "You selected Counter Terrorist!", listitem);
SendClientMessage(playerid, 0xFFFFFFFF, message);
SpawnPlayer(playerid);
SetPlayerPos(playerid, 0.0, 0.0, 0.0);
SetPlayerColor(playerid, CT_COLOR);
SetPlayerSkin(playerid, 252);
return 1;
}
}
}
return 1;
}
Is it any return leack?