02.11.2009, 12:16
Quote:
|
Originally Posted by dice7
Just make a timer and get the players pos. If he's in an enemy gang zone, then display the message
Search for IsPlayerInZone or something |
ERRORS:
Код:
C:\Users\Alex\Desktop\PSWW\gamemodes\GM.pwn(748) : error 055: start of function body without function header C:\Users\Alex\Desktop\PSWW\gamemodes\GM.pwn(749) : error 010: invalid function or declaration C:\Users\Alex\Desktop\PSWW\gamemodes\GM.pwn(751) : error 010: invalid function or declaration C:\Users\Alex\Desktop\PSWW\gamemodes\GM.pwn(756) : error 010: invalid function or declaration C:\Users\Alex\Desktop\PSWW\gamemodes\GM.pwn(758) : error 010: invalid function or declaration C:\Users\Alex\Desktop\PSWW\gamemodes\GM.pwn(764) : warning 203: symbol is never used: "Zone" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Код:
forward CheckPlayerGangzone(playerid);
new Zone[MAX_PLAYERS];
Under OnGameModeInit:
SetTimer("CheckPlayerGangZone",1000,1);
public CheckPlayerGangZone(playerid);
{
if (gTeam[playerid]==TEAM_TERROR)
{
if (IsPlayerInZone(playerid,armyzone)==1)
{
Gangzone[playerid] = TEAM_ARMY;
}
}
else
{
if (IsPlayerInZone(playerid,terrorzone)==1)
{
Gangzone[playerid] = TEAM_TERROR;
}
}
}
Thanks

