30.04.2012, 17:51
How do I lock the car on the server, that it would have locked you turn on the server (admins only get in the car, I should do it).
new pVehicle;
public OnGameModeInit()
{
pVehicle = CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay);
return 1;
}
CMD:lock(playerid)
{
if(IsPlayerAdmin))
{
SetVehicleParamsForPlayer(pVehicle,playerid,0,1);
}
return 1;
}
CMD:unlock(playerid)
{
if(IsPlayerAdmin))
{
SetVehicleParamsForPlayer(pVehicle,playerid,0,0);
}
return 1;
}
pawn Код:
|