If there's anyone in the car - Anti Car Jacked
#1

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?
Reply
#2

Код:
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;
}
Reply
#3

Thanks
Reply
#4

No problem.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)