WTF is going on here????? The shit doesn't work again... - 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: WTF is going on here????? The shit doesn't work again... (
/showthread.php?tid=138939)
WTF is going on here????? The shit doesn't work again... -
RSC_Quicker - 03.04.2010
Solved
Re: WTF is going on here????? The shit doesn't work again... -
[TW]randomguy - 04.04.2010
Hello
Re: WTF is going on here????? The shit doesn't work again... -
iLcke - 04.04.2010
Your trying to Teleport with the car?
Re: WTF is going on here????? The shit doesn't work again... -
Rac3r - 04.04.2010
That's bad. You're not even passing the vehicle model id, you are using the vehicleid.
You could change :
pawn Код:
new vehicle = GetPlayerVehicleID(playerid);
To :
pawn Код:
new vehicle = GetVehicleModel( GetPlayerVehicleID(playerid));
OR
Edit this to fit your needs:
pawn Код:
stock IsBig(modelid)
{
switch(modelid)
{
case 403,406,408,414,416,417,423,425:return true;
case 428,431,432,433,437,443,453,455,456,460:return true;
case 476,486,487,488,497,498,499,508,511,512,513,514,515:return true;
case 519,520,524,532,548,553,563,573,577,588,598,592,593,608,609:return true;
}
return false;
}
if( IsBig( GetVehicleModel( GetPlayerVehicleID(playerid)) ) )
{
// allow teleport
}
Re: WTF is going on here????? The shit doesn't work again... -
RSC_Quicker - 06.04.2010
Thanks I already fixed it by myself but thanks for helping.