04.04.2017, 14:09
Hello everyone!
I have a problem! When do i use /sc it Also Show me the Team Selection dialog too!
This is the Code!
And This code is in OnPlayerClassRequest!
Theres nothing on death that makes the FirstSpawns 0
Please help!
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; }
And This code is in OnPlayerClassRequest!
Код:
if(FirstSpawn[playerid] == 1 && !IsPlayerNPC(playerid)) { ClassDialog(playerid); ................ }
Please help!