one question - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: one question (
/showthread.php?tid=144019)
one question -
lidor5353 - 25.04.2010
I have a question ..
can i get the ID's who get in my car ??
Re: one question -
MadeMan - 25.04.2010
You can.
https://sampwiki.blast.hk/wiki/OnPlayerEnterVehicle
https://sampwiki.blast.hk/wiki/OnPlayerStateChange
Re: one question -
lidor5353 - 25.04.2010
I've been using these functions, but how am I supposed to get the
playerid who get in my car.
Re: one question -
lidor5353 - 25.04.2010
UP...
Re: one question -
lidor5353 - 26.04.2010
ANYONE


i realy need your help !!!!
Re: one question -
[AC]Flow - 26.04.2010
ay, everything is write exept when i go to my server the cars no there
plz help
Re: one question -
CAR - 26.04.2010
give your vehicle an ID like:
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
Re: one question -
cessil - 26.04.2010
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
Re: one question -
scept1c - 26.04.2010
cessil, isn't that what CAR has offered?
Re: one question -
lidor5353 - 26.04.2010
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 ..