Simple functions

Setting players position

SetPlayerPos(playerid, Float:x, Float:y, Float:z);

Setting players facing angle

SetPlayerFacingAngle(playerid, Float:ang);

Setting players interior

SetPlayerInterior(playerid, interiorid);

Setting players health

SetPlayerHealth(playerid, Float:health);

Setting players armour

SetPlayerArmour(playerid, Float:armour);

Setting players score

SetPlayerScore(playerid, score);

Setting players colour

SetPlayerColor(playerid, color);

Setting players skin

SetPlayerSkin(playerid, skinid);

Giving player a weapon

GivePlayerWeapon(playerid, weaponid, ammo);

Reseting a players weapons

ResetPlayerWeapons(playerid);

Giving a player money

GivePlayerMoney(playerid, money);

Reseting a players money

ResetPlayerMoney(playerid);

Setting players wnated level

SetPlayerWantedLevel(playerid, level);

Adding a class (skin)

AddPlayerClass(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);

Adding a vehicle

AddStaticVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2);

Adding a pickup

AddStaticPickup(model,type,Float:X,Float:Y,Float:Z);

Making an explosion

CreateExplosion(Float:X, Float:Y, Float:Z, type, Float:Radius);

Admin functions

Kick(playerid);
Ban(playerid);
BanEx(playerid, const reason[]);


Back | Home