Can someone help me?
#2

You can add this new:bool:ClassChange[MAX_PLAYERS]
Quote:

CMD:cchange(playerid, params[])
{
ClassChange[playerid] = true;
SetPlayerHealth(playerid, 0);
return 1;
}

Add This in OnPlayerSpawn
Quote:

OnPlayerSpawn(playerid)
{
if(ClassChange[playerid] = true)
{
ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "Choose your class", "Assault\n Sniper\n Engineer\n JetTrooper\n Pilot\n", "Choose", "Cancel");
}
}

Reply


Messages In This Thread
Can someone help me? - by PrinceOfPersia - 19.07.2014, 01:58
Re: Can someone help me? - by GeekSiMo - 19.07.2014, 02:11
Re: Can someone help me? - by PrinceOfPersia - 19.07.2014, 02:22
Re: Can someone help me? - by [D]ry[D]esert - 19.07.2014, 02:27
Re: Can someone help me? - by PrinceOfPersia - 19.07.2014, 02:36
Re: Can someone help me? - by GeekSiMo - 19.07.2014, 02:51
Re: Can someone help me? - by Laurey - 19.07.2014, 03:38

Forum Jump:


Users browsing this thread: 2 Guest(s)