SA-MP Forums Archive
Problem... - 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: Problem... (/showthread.php?tid=179377)



Problem... - martynas - 26.09.2010

Hi,

i want to make that if in the co-driver place sit techer player can drive ,but if in the co-driver seat sit simple player or empty seat it will say that you can't drive without techare anybody knows how to do that ?

i'm trying that but i don't know hot make it ....

if(model == 545)
{
new seat = GetPlayerVehicleSeat(playerid);
if(seat == 1 && playerDB[playerid][sc] == 4)
{
SendClientMessage(playerid,0xD9E916FF,"Nive it works");
return 1;
} else {
SendClientMessage(playerid,RED,"You can't drive");
}
return 1;
}

Thanks for help


Re: Problem... - martynas - 26.09.2010

anybody knows ?


Re: Problem... - Voldemort - 26.09.2010

How does it wont work?
errors or just nothing happens?


Re: Problem... - martynas - 26.09.2010

just nothing happends i need to get who sits near me when i'm driver but i don'w know how to do that... :/


Re: Problem... - Voldemort - 26.09.2010

I dont know how this Func need to work but try to make test cmd

/test

printf("Seat: %d",GetPlayerVehicleSeat(playerid));

and see server log


Re: Problem... - martynas - 26.09.2010

it shows where i sit but i need to see if anybodyt in the co-driver seat.. :S