one question
#1

I have a question ..
can i get the ID's who get in my car ??
Reply
#2

You can.

https://sampwiki.blast.hk/wiki/OnPlayerEnterVehicle

https://sampwiki.blast.hk/wiki/OnPlayerStateChange
Reply
#3

I've been using these functions, but how am I supposed to get the playerid who get in my car.
Reply
#4

UP...
Reply
#5

ANYONE
i realy need your help !!!!
Reply
#6

ay, everything is write exept when i go to my server the cars no there

plz help
Reply
#7

give your vehicle an ID like:
pawn Код:
new MyVehicle; // on top
OnGameModeInit
pawn Код:
MyVehicle = AddStaticVehicle(451,...,.....);
OnPlayerEnterVehicle
pawn Код:
if(vehicleid == MyVehicle)
{
  new string[64];
  format(string, sizeof(string), "%d has entered MyVehicle", playerid); // change message what you like
  SendClientMessageToAll(0xFFFFFF, string);
}
This should work
Reply
#8

I think he wants player ids of people in his car, if so you need to get the ID of your car like
mycar = GetPlayerVehicleID(playerid);

then loop through all players and check if they are in the same car ID as mycar
Reply
#9

cessil, isn't that what CAR has offered?
Reply
#10

but is just check if the player enterd to the car id.
like...
if i enterd to NRG-500(ID-522),and other friend get in to other car at same id[NRG-500(ID 522)] it show me then he get in my car and it false.. i think ..

it's realy work ? please try it because i can't now ..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)