21.02.2013, 18:21
Quote:
Tente pawn Code: public OnBombExplode(playerid, num, Float: x, Float: y, Float: z) { for(new i = 0; i < MAX_PLAYERS; i ++) { if(GetPlayerDistanceToPoint(i, x, y, z) < 2) { SetPVarInt(i, "nearExp", playerid); SetTimerEx("ResetNearExp", 15000, 0, "i", i); } } return 1; } |
Quote:
public OnBombExplode(playerid, num, Float: x, Float: y, Float: z) { for(new i; i != MAX_PLAYERS; i++) { if(GetPlayerDistanceToPoint(i, x, y, z) < 2) { if(gBombTypes[btype[playerid][num]][2]) { SetPVarInt(i, "nearExp", playerid); SetTimerEx("ResetNearExp", 15000, false, "i", i); } } } return 1; } |