17.08.2009, 12:34
Код:
public OnPlayerUpdate(playerid) { GetPlayerPos(playerid, UpdateX, UpdateY, UpdateZ); if(GetPlayerWantedLevel(playerid)>0&&GetPlayerTeam(playerid)==TEAM_CIV) { print("is wanted and civ"); for(new i = 0; i < GetMaxPlayers(); i++) { if(GetPlayerTeam(i)==TEAM_COP) { print("is cop somewhere"); if(PlayerToPoint(2, i, UpdateX, UpdateY, UpdateZ)) { print("someone busted"); SpawnPlayer(playerid); ResetPlayerWeapons(playerid); SetPlayerHealth(playerid, 100); SetPlayerPos(playerid, -2631.6670, 1360.6400, 7.1086); } } } } return 1; }
Код:
print("is wanted and civ");