19.05.2012, 16:28
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Escolha","{00FF00}Humano\r\n{FF0000}Zombie\r\n","Escolher", "Kick");
return 1;
}
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1)
{
if(response)
{
if(listitem == 0)//numero 1 da lista
{
if(Equipes[playerid] == 1)
{
SpawnPlayer(playerid);
Equipes[playerid] = 1;
SetPlayerSkin(playerid, 14);
SendClientMessage(playerid, 0xFFFFFFFF, "Vocк Escolheu Ser Humano!");
}
}
}
}
return 1;
}