16.10.2011, 09:00
Func - Simple Functions
Features- foreach - The fastest way to loop trough all the players.
pawn Код:
native GivePlayerHealth(playerid, Float:health); // Increase a player health
native GivePlayerArmour(playerid, Float:armour); // Increase a player armour
native GivePlayerWantedLevel(playerid, level); // Increase a player wanted level
native GivePlayerDrunkLevel(playerid, level); // Increase a player drunk level
native GivePlayerAmmo(playerid, weaponslot, ammo); // Increase a player ammo
native GivePlayerScore(playerid, score); // Increase a player score
native GiveVehicleHealth(vehicleid, Float:health); // Increase a vehicle health
native SetPlayerMoney(playerid, money); // Self-Explanatory
native GiveAllHealth(Float:health); // Increase all players health
native GiveAllArmour(Float:armour); // Increase all players armour
native GiveAllWantedLevel(level); // Increase all players wanted level
native GiveAllDrunkLevel(level); // Increase all players drunk level
native GiveAllAmmo(weaponslot, ammo); // Increase all players ammo
native GiveAllScore(score); // Increase all players score
native GiveAllWeapon(weaponid, ammo); // Gives all players a weapon
native GiveAllMoney(money); // Increase all players money
native SetAllHealth(Float:health); // Set all players health
native SetAllArmour(Float:armour); // Set all players armour
native SetAllWantedLevel(level); // Set all players wanted level
native SetAllDrunkLevel(level); // Set all players drunk level
native SetAllAmmo(weaponslot, ammo); // Set all players ammo
native SetAllScore(score); // Set all players score
native SetAllMoney(money); // Set all players money
native SetAllInterior(interiorid); // Set all players interior id
native SetAllVirtualWorld(virtualworld); // Set all players virtualworld
native SetAllTime(hour, minute); // Set all players time
native SetAllCheckpoint(Float:x, Float:y, Float:z, Float:size); // Set all players a checkpoint
native SetAllFightingStyle(style); // Set all players fighting style
native SetAllSkillLevel(skill, level); // Set all players skill level
native SetAllSkin(skinid); // Set all players skin
native SetAllColor(color); // Set all players color
native SetAllPos(Float:x, Float:y, Float:z); // Set all players position
native SpawnAllVehicles(); // Spawn all vehicles
native ResetAllMoney(); // Reset all players money
native SpawnAllPlayers(); // Spawn all players
native SetMapName(string[]); // Change the server mapname
native Freeze(playerid); // Freezes a player
native Unfreeze(playerid); // Unfreezes a player