17.06.2013, 21:43
(
Последний раз редактировалось RACGaming; 21.06.2013 в 15:02.
)
RAC Include
Lots of usefull functions to help you out!
What is this?Lots of usefull functions to help you out!
RACInclude includes some functions to help you with getting player's zone, or if the vehicle is spawned, Getting player name, etc...
Functions
Quote:
GetPlayerZone(playerid); IsVehicleSpawned(vehicleid); IsVehicleOccuppied(vehicleid); GetVehicleOccuppier(vehicleid); GetPlayerIDByName(playername[]); GetVehicleName(vehicleid); IsVehicleBike(vehicleid); PlayerName(playerid); GetVehicleSpeed(vehicleid); SetVehicleSpeed(vehicleid, speed); |
Mediafire: http://www.mediafire.com/download/5x...racinclude.inc
Solidfiles: http://www.solidfiles.com/d/24d98ec1a9/
Pastebin: http://pastebin.com/4upSAUcf
Install
Download it and put this into your server pawno/include folder.
Put #include <racinclude> on top of your script, below #include <a_samp>
Updates
V0.2
Quote:
Updated GetVehicleOccupier and IsVehicleOccupied. GetVehicleOccupier reads now only the Driver, not passengers. |
Quote:
GetPlayerZone(playerid); IsVehicleSpawned(vehicleid); IsVehicleOccuppied(vehicleid); GetVehicleOccuppier(vehicleid); GetPlayerIDByName(playername[]); GetVehicleName(vehicleid); IsVehicleBike(vehicleid); PlayerName(playerid); GetVehicleSpeed(vehicleid); SetVehicleSpeed(vehicleid, speed); |
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/zone", true))
{
new string[128];
format(string, sizeof(string), "Your current zone is: %s.", GetPlayerZone(playerid));
SendClientMessage(playerid, -1, string);
return 1;
}
return 0;
}
Bugs
Currently no bugs found.
Credits
SA-MP: The SA-MP Team.
Include: RACGaming.
Coder: RACGaming.
Testing: RACGaming.