Please help guys... xD
#1

Hello. I wanna to make cars where can enter just one player and noone else when some other will enter to eject him automaticly... please someone help
Thanks...
Reply
#2

how is the person allowed in the car selected?
Reply
#3

idk dude i jsut want to choose just one person who can enter in that car
Reply
#4

If you're intending to make NOBODY enter that car but the owner or something, you should use OnPlayerEnterVehicle.

But if you're trying to make NOBODY drive it but the owner or something, you should use OnPlayerStateChange.
Reply
#5

nono dude i want to choose one person to drive that vehicle exsample:
i'm making sultan at the owner house and i want to make just the owner of the house drive that vehicle and i to choose that ... xD
sorry for my bad english... i hope u will understand
Thanks.
Reply
#6

So you basically want it to identify their username then they can enter?
Reply
#7

yeah yeah
Reply
#8

pawn Код:
new pName[24];
GetPlayerName(playerid, pName, sizeof(pName));
if(strfind(pName, "(Name)", false) != -1)
That's the detection part.
Reply
#9

hmm and how to detect a car o_0
and where to put this...
Thanks...
Reply
#10

Put that in
pawn Код:
public OnGameModeInIt()
I'll get onto the car detection in a sec since I'm on my phone at the moment.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)