21.11.2009, 22:33
Anti Non-RP Car jack, Ideal for RP servers.
pawn Код:
if(!ispassenger)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(GetPlayerVehicleID(i) == vehicleid && GetPlayerState(i) == PLAYER_STATE_DRIVER)
{
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid, cx, cy, cz);
SetPlayerPos(playerid, cx, cy, cz);
SendClientMessage(playerid,COLOR_GREY," Someone is driving this vehicle, You must take it Properly !");
}
}
}