Hello There, Guest! Login or Register


else if
#6
You havn't defined your teams as anything. You should define them as a number! Also, to make it much easier, providing your team starts with team id 0, and your classes are in the correct order:

Code:
public OnPlayerRequestClass(playerid)
{
    SetPlayerTeam(playerid,classid);
    gTeam[playerid] = classid; //Providing your teams are in the right order according with the skins and start on 0, this will set your class to the team automatically.
    return true;
}

Also note that your doing it under the wrong callback, OnPlayerRequestSpawn dosn't have classid parameters.
Reply


Messages In This Thread
else if - by blahc - 06-01-2008, 08:21 PM
Re: else if - by FarePak - 06-01-2008, 08:23 PM
Re: else if - by blahc - 06-01-2008, 08:33 PM
Re: else if - by Motorola - 06-02-2008, 12:27 AM
Re: else if - by Greyfox - 06-02-2008, 06:22 AM
Re: else if - by Jay - 06-02-2008, 11:54 AM