Class Help!
#1

Hello everyone!

I have a problem! When do i use /sc it Also Show me the Team Selection dialog too!
Код:
CMD:sc(playerid, params[])
{
	if(gTeam[playerid] == TEAM_USA || gTeam[playerid] == TEAM_ARAB || gTeam[playerid] == TEAM_ASIA || gTeam[playerid] == TEAM_AUS || gTeam[playerid] == TEAM_EURASIA || gTeam[playerid] == TEAM_SOVIET ) SendClientMessage(playerid, yellow,"*You are forced to class selection.");
	else if(gTeam[playerid] == TEAM_MERC || gTeam[playerid] == TEAM_latin) return SendClientMessage(playerid, red, "*Mercenary and latin Team dose not have any classes.");
	ForceClassSelection(playerid); -------------------- Main Point
   	FirstSpawn[playerid] = 1;  -------------------- Main Point
    return 1;
}
This is the Code!

And This code is in OnPlayerClassRequest!
Код:
 if(FirstSpawn[playerid] == 1 && !IsPlayerNPC(playerid))
    {
    ClassDialog(playerid);
................ }
Theres nothing on death that makes the FirstSpawns 0
Please help!
Reply


Messages In This Thread
Class Help! - by IceSKull - 04.04.2017, 14:09
Re: Class Help! - by AndreiWow - 04.04.2017, 14:14
Re: Class Help! - by IceSKull - 04.04.2017, 14:16
Re: Class Help! - by AndreiWow - 04.04.2017, 14:17
Re: Class Help! - by IceSKull - 04.04.2017, 14:19
Re: Class Help! - by jlalt - 04.04.2017, 14:19
Re: Class Help! - by IceSKull - 04.04.2017, 14:21
Re: Class Help! - by AndreiWow - 04.04.2017, 14:21
Re: Class Help! - by IceSKull - 04.04.2017, 14:24
Re: Class Help! - by AndreiWow - 04.04.2017, 14:56

Forum Jump:


Users browsing this thread: 2 Guest(s)