How to make it VIP only with PlayerInfo - 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: How to make it VIP only with PlayerInfo (
/showthread.php?tid=449034)
How to make it VIP only with PlayerInfo -
San1 - 07.07.2013
pawn Код:
stock IsVIPVehicle(vehicleid)
{
for(new i=0; i<25; i++)
{
if(vehicleid == PlayerInfo[i][pVIP] >= 1 && vCar[i]) return 1; // LINE 48362
}
return 0;
}
ERRORS:
Код:
C:\Users\Debbie\Documents\Luxury Life RP\gamemodes\modernliferp.pwn(48362) : warning 213: tag mismatch
Re: How to make it VIP only with PlayerInfo -
dEcooR - 07.07.2013
show me your enum PlayerInfo
Re: How to make it VIP only with PlayerInfo -
Konstantinos - 07.07.2013
Comparing vehicle ids and check if he's vip. I assume vCar stores the vehicleid. So, it'd be:
pawn Код:
if(vehicleid == vCar[i] && PlayerInfo[i][pVIP] >= 1) return 1;