mOO! helps
#4

Quote:
Originally Posted by Hiddos
Посмотреть сообщение
Ehm, 'gangzone' isn't defined. You might wish to add an extra parameter so it'll be like:

pawn Код:
public OnPlayerEnterGangZone(playerid,gangzone)
Don't forget to update the shitz.
pawn Код:
public OnPlayerEnterGangZone(playerid)
{
    if(gangzone == bigear)
    {
        if(gTeam[playerid] == TEAM_GANGSTAS)
        {
            new string[256];
            new playername[MAX_PLAYER_NAME];
            GetPlayerName(playerid,playername,sizeof(playername));
            format(string, sizeof(string),"%s Has Entered Mobstas GangZone",playername);
            SendClientMessageToAll(COLOR_LIGHTPINK,string);
            SendClientMessage(playerid, COLOR_LIME, "Becareful in the enemies gang zone!");
        }
    }
    else
    {
        if(gangzone == area51)
        {
            if(gTeam[playerid] == TEAM_MOBSTAS)
            {
                new string[256];
                new playername[MAX_PLAYER_NAME];
                GetPlayerName(playerid,playername,sizeof(playername));
                format(string, sizeof(string),"%s Has Entered Gangstas GangZone",playername);
                SendClientMessageToAll(COLOR_LIGHTPINK,string);
                SendClientMessage(playerid, COLOR_LIME, "Becareful in the enemies gang zone!");
            }
        }
    }
    return 1;
}
}
just add the gang zones but i got all that i just dont know how to make it show when enters gang zone lol but atleast i gave it an effort and i know its not defined thats what the
pawn Код:
forward OnPlayerEnterGangZone(playerid);
was there
Reply


Messages In This Thread
mOO! helps - by willsuckformoney - 09.07.2010, 20:49
Re: mOO! helps - by willsuckformoney - 10.07.2010, 09:24
Re: mOO! helps - by Hiddos - 10.07.2010, 09:26
Re: mOO! helps - by willsuckformoney - 10.07.2010, 09:30
Re: mOO! helps - by Hiddos - 10.07.2010, 09:31
Re: mOO! helps - by willsuckformoney - 10.07.2010, 09:38

Forum Jump:


Users browsing this thread: 2 Guest(s)