On player spawn select team help plz!!
#5

here:
pawn Код:
public OnGameModeInIt()
{
// Case 0
    AddPlayerClass(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);
// Case 1
    AddPlayerClass(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);
// Case 2
    AddPlayerClass(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);
}


public OnPlayerRequestClass(playerid,classid)
{
    if(classid == 0) {
        GameTextForPlayer(playerid,"This Is Skin Number 1",3000,5);
        else if(classid == 1) {
            GameTextForPlayer(playerid,"This Is Skin Number 2",3000,5);
            else if(classid == 2) {
                GameTextForPlayer(playerid,"This Is Skin Number 3",3000,5);
            }
        }
    }
    return 1;
}
for example:
pawn Код:
public OnGameModeInIt()
{
    AddPlayerClass(104,1979.1917,-1222.0964,25.1824,97.3597,0,0,0,0,0,0);
    AddPlayerClass(107,2508.5671,-1673.6665,13.3793,86.2585,0,0,0,0,0,0);
}


public OnPlayerRequestClass(playerid,classid)
{
    if(classid == 0) {
        GameTextForPlayer(playerid,"This Is Ballas skin",3000,5);
        else if(classid == 1) {
            GameTextForPlayer(playerid,"this is Grove skin",3000,5);
        }
    }
    return 1;
}
Reply


Messages In This Thread
On player spawn select team help plz!! (no one is going to help me? :sad:) - by Captain_Mani - 14.09.2011, 13:24
Re: On player spawn select team help plz!! - by Universal - 14.09.2011, 13:28
Re: On player spawn select team help plz!! - by Captain_Mani - 14.09.2011, 13:51
Re: On player spawn select team help plz!! - by Universal - 14.09.2011, 15:13
Re: On player spawn select team help plz!! - by Kaperstone - 14.09.2011, 15:22
Re: On player spawn select team help plz!! - by Captain_Mani - 14.09.2011, 16:33

Forum Jump:


Users browsing this thread: 1 Guest(s)