01.12.2010, 19:26
My question here is how to reapply this function below when "OnVehicleStreamIn " is called. Otherwise this doesn't work.
I've tried this
and doesn't work, I'm a begginer here so any suggestion will be appreciated.
Код:
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; }
Код:
public OnVehicleStreamIn(vehicleid, forplayerid) { SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 1); }