SA-MP Forums Archive
[help] What's wrong? - 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: [help] What's wrong? (/showthread.php?tid=73182)



[help] What's wrong? - Marc_307 - 13.04.2009

Hi all, I wanted to put a yellow mark above a car. I made this:
pawn Код:
public OnPlayerSpawn(playerid)
{
    SetVehicleParamsForPlayer(0,playerid,1,0);
    return 1;
}
But it doesn't work. What's wrong?


Re: [help] What's wrong? - DiDok - 13.04.2009

https://sampwiki.blast.hk/wiki/SetVehicleParamsForPlayer
You're using it completely wrong, explain (write EVERYTHING) WHEN and HOW you wanna use this function...


Re: [help] What's wrong? - Pyrokid - 14.04.2009

Quote:
Originally Posted by Marc_307
Hi all, I wanted to put a yellow mark above a car. I made this:
public OnPlayerSpawn(playerid)
{
SetVehicleParamsForPlayer(0,playerid,1,0);
return 1;
}
But it doesn't work. What's wrong?
Do you know that SetVehicleParams has nothing to do with setting a yellow marker above a car?

I think the yellow marker is an object (I'm guessing the interior marker).
https://sampwiki.blast.hk/wiki/CreateObject

You need to get the pos of the car and create an object above it.
https://sampwiki.blast.hk/wiki/GetVehiclePos


Re: [help] What's wrong? - Joe Staff - 14.04.2009

Yes it does. It's for highlighting a vehicle and locking it.


Re: [help] What's wrong? - ICECOLDKILLAK8 - 14.04.2009

Look in CNG by Kyeman, It should be located in your Gamemodes folder