Classes [NEED HELP]
#1

Hey guys,

How can i make if they spawn with the class id 2 they GiveWeapon();

I have this code but i dont know how to do it on OnPlayerSpawn

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(classid == 0)
        {
            GameTextForPlayer(playerid, "~b~DeathMatcher!", 8000, 3);
        }
    if(classid == 1)
    {
         GameTextForPlayer(playerid, "~Y~Stunter!", 8000, 3);
    }
    if(classid == 2)
    {
        GameTextForPlayer(playerid, "~P~Drifter!", 8000, 3);
    }
But i need to do something OnPlayerSpawn if they set for example id 0 it give him a Weapon or something
Reply


Messages In This Thread
Classes [NEED HELP] - by matthewdriftking - 20.08.2010, 16:31
Re: Classes [NEED HELP] - by Vince - 20.08.2010, 16:42
Re: Classes [NEED HELP] - by matthewdriftking - 20.08.2010, 16:44
Re: Classes [NEED HELP] - by matthewdriftking - 20.08.2010, 17:40
Re: Classes [NEED HELP] - by MadeMan - 20.08.2010, 18:03

Forum Jump:


Users browsing this thread: 2 Guest(s)