If there's anyone in the car - Anti Car Jacked - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: If there's anyone in the car - Anti Car Jacked (
/showthread.php?tid=388829)
If there's anyone in the car - Anti Car Jacked -
hamim - 30.10.2012
Hey, if someone wants to get in the car he can not ride, and confronted the driver of the vehicle seat, if there is someone going to post how can I do it?
AW: If there's anyone in the car - Anti Car Jacked -
Skimmer - 30.10.2012
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
for(new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i) && IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == PLAYER_STATE_DRIVER && !ispassenger) return SendClientMessage(playerid, 0xFF0000FF, "You cannot jack this car.");
}
return 1;
}
Re: If there's anyone in the car - Anti Car Jacked -
hamim - 30.10.2012
Thanks
AW: If there's anyone in the car - Anti Car Jacked -
Skimmer - 30.10.2012
No problem.