Safe zones
#2

For Weapons use this functions:

// All credits for Amit_Barami (Amit B).
Top of script:
pawn Код:
new pWeapons[MAX_PLAYERS][13][2];

pawn Код:
stock SavePlayerWeapons(playerid)
{
    for(new i=0;i<13;i++)
    {
        GetPlayerWeaponData(playerid,i,pWeapons[playerid][i][0],pWeapons[playerid][i][1]);
    }
    return 1;
}
pawn Код:
stock LoadPlayerWeapons(playerid)
{
    for(new i=0;i<13;i++) GivePlayerWeapon(playerid,pWeapons[playerid][i][0],pWeapons[playerid][i][1]);
    return 1;
}
and for the Hunter/Hydra system, use IsPlayerInArea / PlayerToPoint function in OnPlayerUpdate callback.

Reply


Messages In This Thread
Safe zones - by MaXSpeeD - 18.01.2010, 17:28
Re: Safe zones - by Cry_Wolf - 18.01.2010, 18:10
Re: Safe zones - by Joe Staff - 18.01.2010, 18:29

Forum Jump:


Users browsing this thread: 1 Guest(s)