How do i make that skin id 109 can enter car id 402 and other cant, team etc.. - 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: How do i make that skin id 109 can enter car id 402 and other cant, team etc.. (
/showthread.php?tid=144676)
How do i make that skin id 109 can enter car id 402 and other cant, team etc.. -
hardstop - 28.04.2010
i want like team car or something
that only certain skin or team can use a car
Re: How do i make that skin id 109 can enter car id 402 and other cant, team etc.. -
Hiddos - 28.04.2010
pawn Код:
public OnPlayerEnterVehicle(playerid,vehicleid,ispassenger)
{
if(vehicleid == 402 && GetPlayerSkin(playerid) != 109)
{
RemovePlayerFromVehicle(playerid);
}
//rest of callback
return 1;
}
Re: How do i make that skin id 109 can enter car id 402 and other cant, team etc.. -
Correlli - 28.04.2010
@Hiddos: Your code won't work, because OnPlayerEnterVehicle is called when player presses the vehicle-ENTER key and if he is near any vehicle.
Use OnPlayerStateChange for that.