[help] What's wrong?
#1

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

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

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)