24.10.2015, 03:48
Basically, this is an include that add many functions, im going to explain all the functions.
This function get the name of a player without make a var
For those people that not use strtok or sccanf, this is going to add the name like parameter (To combine with IsNumeric)
This function get the ID of the nearest vehicle
This function get the distance between 2 players and save it in floats.
This function is the same that SendClientMessage but add '[Error]' before the text
This function explode all players in a radius
This function discount health of a player, if a player have 100 and you discount 30, they will have 70.
This function discount armour of a player, if a player have 100 and you discount 30, they will have 70.
This function add health for a player, if a player have 60 and you add 20 they will have 80
This function add armour for a player, if a player have 60 and you add 20 they will have 80
Get the X position of a player
Get the Y position of a player
Get the Z position of a player
This function is the plus of format + SendClientMessage
Example:
The same but to all the server
Note: If you look at the script, you probably find functions that aren't in the list, this is because some functions aren't complete, im going to release another version with more functions.
Thank you for reading, regards, Goncho28 from the Spanish section.
pawn Код:
GetName(playerid);
pawn Код:
GetPlayerID(const nombre[]);
pawn Код:
GetNearestCar(playerid);
pawn Код:
GetDistanceBetweenTwoPlayers(player1, player2, &Float:x, &Float:y, &Float:z);
pawn Код:
SendErrorMessage(playerid, message[]);
pawn Код:
ExplodeAll(type, Float:radio);
pawn Код:
RemovePlayerHealth(playerid, Float:resta);
pawn Код:
RemovePlayerArmour(playerid, Float:resta);
pawn Код:
AddPlayerHealth(playerid, Float:suma);
pawn Код:
AddPlayerArmour(playerid, Float:suma);
pawn Код:
GetPlayerxPos(playerid);
pawn Код:
GetPlayeryPos(playerid);
pawn Код:
GetPlayerzPos(playerid);
pawn Код:
SendClientFormattedMessage(playerid, color, const msg[]);
Example:
pawn Код:
SendClientFormattedMessage(playerid, 0xFF0000FF, "Your name is %s", GetName(playerid));
pawn Код:
SendClientFormattedMessageToAll(color, const msg[])
Note: If you look at the script, you probably find functions that aren't in the list, this is because some functions aren't complete, im going to release another version with more functions.
Thank you for reading, regards, Goncho28 from the Spanish section.