Spawn with Classes Help
#1

Hello
i Recently made a class system

Код HTML:
if(gPlayerClass[playerid] == CLASS_SARBAZ)//This is for the First soldier class.
    {
        StopAudioStreamForPlayer(playerid);
        TogglePlayerControllable(playerid, 1);
        ResetPlayerWeapons(playerid);
        GivePlayerWeapon(playerid, 31, 200);//m4
        GivePlayerWeapon(playerid, 25, 100);//mp5
        GivePlayerWeapon(playerid, 24, 70);//deagle
    }
    else if(gPlayerClass[playerid] == CLASS_TAKTIRANDAZ)//This is for the Second Sniper class.
    {
        TogglePlayerControllable(playerid, 1);
        ResetPlayerWeapons(playerid);
        GivePlayerWeapon(playerid, 34, 250);//sniper
        GivePlayerWeapon(playerid, 29, 250);//mp5
        GivePlayerWeapon(playerid, 4, 1);//knife
    }
when i die i will respawn from cj not classes and it's guns

thanks
Reply


Messages In This Thread
Spawn with Classes Help - by Mohaowmad - 05.03.2019, 13:11
Re: Spawn with Classes Help - by Matz - 05.03.2019, 19:28

Forum Jump:


Users browsing this thread: 1 Guest(s)