VIP Cars - 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: VIP Cars (
/showthread.php?tid=501001)
VIP Cars -
ChuckyBabe - 16.03.2014
I need a script the whole code in pawno with if he is vip and he enter the VIP car he can enter it, if not he will be thrown. please give me i promise i will give +rep.
Re: VIP Cars -
ThaCrypte - 16.03.2014
Well, I ain't going to script it for you, but go to:
pawn Код:
public Onplayerentervehicle
There you can add a detection for example:
pawn Код:
If(!PlayerInfo[playerid][pVip] >= 1 && VehicleInfo[vehicleid][vipcar] == 1) // detects if the player aint VIP and if the vehicle is a VIP vehicle
Ofcourse you'll have to do the rest for yourself, as the scripting help forum ain't a script request forum.
Re: VIP Cars -
CuervO - 16.03.2014
Quote:
Originally Posted by ThaCrypte
Well, I ain't going to script it for you, but go to:
pawn Код:
public Onplayerentervehicle
There you can add a detection for example:
pawn Код:
If(!PlayerInfo[playerid][pVip] >= 1 && VehicleInfo[vehicleid][vipcar] == 1) // detects if the player aint VIP and if the vehicle is a VIP vehicle
Ofcourse you'll have to do the rest for yourself, as the scripting help forum ain't a script request forum.
|
OnPlayerStateChange +
RemovePlayerFromVehicle is more appropiated for this.
Re: VIP Cars -
ChuckyBabe - 16.03.2014
Can u give all the code ?
and teach me where i will put it ?
btw the code is not [pVIP] its [pDonator]
Re: VIP Cars -
ThaCrypte - 16.03.2014
Quote:
Originally Posted by ChuckyBabe
Can u give all the code ?
and teach me where i will put it ?
btw the code is not [pVIP] its [pDonator]
|
Then you should change it :P And yeah what cuervo said :P Just look up some tutorials.
Re: VIP Cars -
ChuckyBabe - 16.03.2014
Where is the whole code like
#define max cars etc..
Re: VIP Cars -
Flake. - 16.03.2014
I feel like we've been here before..
https://sampforum.blast.hk/showthread.php?tid=500788
https://sampforum.blast.hk/showthread.php?tid=499653
..
It seems like you just want us to script for you, why don't you use some of the help people have given you in those threads (I know the code works because I tested mine) And go ahead and try yourself instead of basically getting us to make your gamemode for you.