10.07.2010, 09:30
Quote:
Ehm, 'gangzone' isn't defined. You might wish to add an extra parameter so it'll be like:
pawn Код:
|
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;
}
}
pawn Код:
forward OnPlayerEnterGangZone(playerid);