04.04.2009, 20:27
How to lock a vehicle for EVERYONE... And when the owner of the car comes online, the vehicle will be locked for everyone except him/her...
if( Owner is offline ) //Change please...
{
SetVehicleParamsForPlayer(vehicleid,255,0,1);
}
else
{
SetVehicleParamsForPlayer(vehicleid,playerid,0,1); // I Don't know how to check if the owner is offline or online
}
new pn[24];
for(new i=0; i<MAX_PLAYERS; i++)
{
GetPlayerName(i, pn, 24);
if(strcmp(pn, "YourNameInGame"))
SetVehicleParamsForPlayer(vehicleid, i, 0, 1); //Remember to change "YourNameInGame" and vehicleid
}
Originally Posted by lrZ^ aka LarzI
pawn Код:
|
Originally Posted by иєσz
You should save every car in a file..
|