20.08.2010, 16:31
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
But i need to do something OnPlayerSpawn if they set for example id 0 it give him a Weapon or something
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);
}