SA-MP Forums Archive
[HELP]Yellow mark above the car - 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: [HELP]Yellow mark above the car (/showthread.php?tid=439887)



[HELP]Yellow mark above the car - RewenGe - 27.05.2013

Hi guys have this:

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(cp_1mise[playerid] == 1)
    {
            SetVehicleParamsForPlayer(jeep1m[0],playerid,0,0);
            SetVehicleParamsForPlayer(jeep1m[1],playerid,0,0);
            SetVehicleParamsForPlayer(jeep1m[2],playerid,0,0);
    }
    return 1;
}
And need diseappear yellow mark.

But it dont work..on another forum i read yellow mark diseapered just if the vehicle is destroyed..so can i do this another way ?

Sorry for my english..Im czech


Re: [HELP]Yellow mark above the car - Hernando - 27.05.2013

Not sure if this'll work, but here ya go.
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(cp_1mise[playerid] == 1)
    {
            SetVehicleParamsForPlayer(jeep1m[0],playerid,0,0);
            SetVehicleParamsForPlayer(jeep1m[1],playerid,0,0);
            SetVehicleParamsForPlayer(jeep1m[2],playerid,0,0);
    }
    return 1;
}
// change to
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(cp_1mise[playerid] == 1)
    {
    }
    return 1;
}



Re: [HELP]Yellow mark above the car - RewenGe - 27.05.2013

Quote:
Originally Posted by Hernando
Посмотреть сообщение
Not sure if this'll work, but here ya go.
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(cp_1mise[playerid] == 1)
    {
            SetVehicleParamsForPlayer(jeep1m[0],playerid,0,0);
            SetVehicleParamsForPlayer(jeep1m[1],playerid,0,0);
            SetVehicleParamsForPlayer(jeep1m[2],playerid,0,0);
    }
    return 1;
}
// change to
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(cp_1mise[playerid] == 1)
    {
    }
    return 1;
}
Maybe im stupid but explain me. How this can work ? I have idea do it by some object.. but CreateObject dont have parametr "playerid" and i want to see it individuals