Score requirments
#1

Код:
else if(classid == 9)
	{
	        SendClientMessage(playerid,0xFFFFFF96, "Vagos-Lightweight Class");
		SendClientMessage(playerid,0xFFFFFF96, "Vagos-Lightweight Class includes Cane-Tec9-9mm");
		GameTextForPlayer(playerid,"~b~Vagos-Lightweight",3000,4);
		if (GetPlayerScore(playerid) < 20)
			{
	                        SendClientMessage(playerid,0xFFFFFF96, "You need 20 Score For this class");
	                        ForceClassSelection(playerid);
	                }
	                else
	                {
			gTeam[playerid] = TEAM_VAGOS;
			SetPlayerTeam(playerid,TEAM_VAGOS);
			SetPlayerColor(playerid, 0x00FFFBFF);
			}
	}
What am i doing wrong with this script if the player has less than 20 score i want him to be forced back into the class selection whilst if the player has over 20 score he can select the class and continue.
Reply


Messages In This Thread
Score requirments - by muhib777 - 10.07.2011, 12:10
Re: Score requirments - by Norck - 10.07.2011, 13:31

Forum Jump:


Users browsing this thread: 1 Guest(s)