Help me to fix a problem..
#1

hi , i have this ;

pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerToTeamColor(playerid);

    if(gTeam[playerid] == TEAM_STARS)
    {
        SetPlayerPos(playerid, -379.6754,911.4002,9.4913);
        SetPlayerSkin(playerid, 285);
        gTeam[playerid] = TEAM_STARS;
        ResetPlayerWeapons(playerid);
        GivePlayerWeapon(playerid, 31, 300);
        GivePlayerWeapon(playerid, 34, 100);
        SetPlayerColor(playerid,0x00FF00AA);
        GameTextForPlayer(playerid,"Welcome to S.T.A.R HQ sir !",1,1);
    }
return 1;
}
so , i want whene a player choose the skin 285 and spawn with it , Give him Weapons...

but it doesn't give him anything or saying the Message In Game , BTW i have defined the TEAM:

pawn Код:
public SetPlayerTeamFromClass(playerid,classid)
{
    // Set their team number based on the class they selected.
    if(classid == 0) {
        gTeam[playerid] = TEAM_STARS;
    }
}
Note: the First Addclass(balabla) is the Skin 285 so , it must work .. Need Help
Reply


Messages In This Thread
Help me to fix a problem.. - by ServerScripter - 31.08.2011, 21:52
Re: Help me to fix a problem.. - by ServerScripter - 31.08.2011, 22:01
Re: Help me to fix a problem.. - by Jack_Leslie - 31.08.2011, 22:05
Re: Help me to fix a problem.. - by TouR - 31.08.2011, 22:06
Re: Help me to fix a problem.. - by TouR - 31.08.2011, 22:08
Re: Help me to fix a problem.. - by ServerScripter - 31.08.2011, 22:20

Forum Jump:


Users browsing this thread: 2 Guest(s)