24.12.2012, 07:16
pawn Код:
new pZona[MAX_PLAYERS] = {-1, ...};
#define ZONA_MINIGUN 1
public OnPlayerDisconnect(playerid, reason)
{
if(pZona[playerid] != -1) pZona[playerid] = -1;
return 1;
}
public OnPlayerUpdate(playerid)
{
if(pZona[playerid] != ZONA_MINIGUN)
{
if(GetPlayerWeapon(playerid) == WEAPON_MINIGUN)
{
SetPlayerArmedWeapon(playerid, 0);
}
}
return 1;
}
No lo he probado, pero deberнa funcionar.

