[help]how to make spawn after selecting the class?
#1

I have a problem, spawn the player first and then the class is selected, I want you first select the class and then if spawn. (problem in the /sc command)

if(ClassTaken[playerid] == 1)
{
ShowPlayerDialog(playerid, CLASS_DIALOG, DIALOG_STYLE_LIST,"Choose your class:","Soldier (0 scores - Rank 1)\nSniper (400 scores - Rank 3)\nPyroman (1,500 scores - Rank 5)\nSupporter (3,000 Scores - Rank 6)\nEngineer (5,000 scores - Rank 7)\nMedic (10,000 scores - Rank 9)\nPilot (15,000 scores - Rank11)\nSpy (20,000 Scores - Rank12)\nDonator (VIP Rank 3)","Choose","Back");
ClassTaken[playerid] = 0;

}

y este es el comando
CMD: sc(playerid, params[])
{
SendClientMessage(playerid, RED, "(PROCESSED): You will change your class after the next death!");
ClassTaken[playerid] = 1;
return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)