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
#2

AddPlayerClass(id, x, y, z, angle, weapon1, ammo1, weapon2, ammo2, weapon3, ammo3);
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
AddPlayerClass(id, x, y, z, angle, weapon1, ammo1, weapon2, ammo2, weapon3, ammo3);
No listen me, I want to set thier time too.. with the classes id :S

Sry for my bad eng
Reply
#4

---> B.U.M.P <---
Reply
#5

pawn Код:
new PlayerClass[MAX_PLAYERS];

public OnPlayerRequestClass(playerid, classid)
{
    PlayerClass[playerid] = classid;
    return 1;
}

public OnPlayerSpawn(playerid)
{
    if(PlayerClass[playerid] == 0)
        {

        }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)