Help with car locks
#1

My question here is how to reapply this function below when "OnVehicleStreamIn " is called. Otherwise this doesn't work.

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext,"/lock",true)) 
    {
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xFFFFFFAA,"You have to be inside a vehicle.");
        for(new i=0; i < MAX_PLAYERS; i++)
        {
            if(i == playerid) continue;
            SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i,0,1);
        }
        return 1;
    }
    return 0;
}
I've tried this

Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
	SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 1);
}
and doesn't work, I'm a begginer here so any suggestion will be appreciated.
Reply


Messages In This Thread
Help with car locks - by Perry - 01.12.2010, 19:26
Re: Help with car locks - by JaTochNietDan - 01.12.2010, 20:03
Re: Help with car locks - by Perry - 01.12.2010, 20:32
Re: Help with car locks - by The_Gangstas - 01.12.2010, 21:18
Re: Help with car locks - by Perry - 01.12.2010, 22:17

Forum Jump:


Users browsing this thread: 2 Guest(s)