Scripting help needed
#1

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
Reply
#2

We're not here to code for you.
Reply
#3

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 {}
}
Reply
#4

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
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)