SA-MP Forums Archive
Scripting help needed - 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)
+--- Thread: Scripting help needed (/showthread.php?tid=333418)



Scripting help needed - Anup_Rao - 11.04.2012

I want to create a vehicle in a certain place

pawn Код:
AddStaticVehicleEx(447,2615.80004883,2721.39990234,36.59999847,90.00000000,11,1,60);
this is the code but i want only skin 285 to be able to get in or else it should eject them and send client message can u make a code for that and reply to me if it helps me i will rep up for you but please put the whole code


Re: Scripting help needed - Jack.7331 - 11.04.2012

We're not here to code for you.


Re: Scripting help needed - [GTA-PR]Temper - 11.04.2012

Use OnPlayerStateChange.

if(GetPlayerVehicleID(playerid) == VehID)
{
if(GetPlayerSkin(playerid) != 285)
{
SendClientMessage(playerid, COLOR_RED,"You can't drive this vehicle.");
RemovePlayerFromVehicle(playerid);
return 1;
}
else {}
}


Re: Scripting help needed - MadeMan - 11.04.2012

I'm not going to do it for you, but these links should help

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

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

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


Re: Scripting help needed - Anup_Rao - 11.04.2012

Quote:
Originally Posted by Jack.7331
Посмотреть сообщение
We're not here to code for you.
Ok Im sorry its ok i wont ask things from today