Need some help..[First GM]
#1

sss%s
Reply
#2

Im sure use use gTeam, so,

Under OnPlayerSpawn do:

pawn Код:
if(gTeam[playerid] == TEAM_GROVE)
{
    SetPlayerColor(playerid, TEAM_GROVE_COLOR);
}
else if(gTeam[playerid] == TEAM_BALLAS)
{
    SetPlayerColor(playerid, TEAM_BALLAS_COLOR);
}
etc, etc.
Reply
#3

That's where i have it, but after else if what goes? another if?

Edit: Actually i have it outside OnPlayerspawn..As a new function
Reply
#4

Well i was trying to express that you need to SET there color, and under OnPlayerSpawn would be the appropriate area to do so.
Reply
#5

If i put it under OnPlayerSpawn i'd get errors.

Edit: Look at the code again..Thats EVERYTHING
Reply
#6

pawn Код:
SetPlayerTeamFromClass(playerid, classid)
{
    if (classid == 0 || classid == 1 || classid == 2)
    {
        gTeam[playerid] = TEAM_GROVE;
    }
    if (classid == 3 || classid == 4 || classid == 5)
    {
        gTeam[playerid] = TEAM_BALLAS;
    }
    if (classid == 6 || classid == 7 || classid == 8)
    {
        gTeam[playerid] = TEAM_AZTECAS;
    }
    if (classid == 9 || classid == 10 || classid == 11)
    {
        gTeam[playerid] = TEAM_DANANGBOYS;
    }
    if (classid == 12 || classid == 13 || classid == 14)
    {
        gTeam[playerid] = TEAM_SFRIFA;
    }
    if (classid == 15 || classid == 16 || classid == 17)
    {
        gTeam[playerid] = TEAM_VAGOS;
    }
    if (classid == 18 || classid == 19 || classid == 20)
    {
        gTeam[playerid] = TEAM_SWAT;
    }
    else if (classid == 21 || classid == 22 || classid == 23)
    {
        gTeam[playerid] = TEAM_ADMIN;
    }
}
You meant that? 3 skins per gang when you choosing the skin? By the way, i recommend you deleting all those colors, just add them when you need, the shorter the script, better is to script.
Reply
#7

exactly, no need for that many colors, just add them when you need them, and for your problem i cannot help for i am on a cell,, but i will pm you sometime tommorow.
Reply
#8

Yesssssss. Thanks for the tip and the help!
And it's ok, PM me and I'll probably have more problems on the long run since I'm not that experienced.
Thanks for the help guys!

Edit: Nvm..It works fine! Thanks again
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)