25.08.2009, 13:38
Hello, i have this codec my system admin in GM... But i want, when the vip member (player) use the /vcar and get in car he select with /vsetcar, the car is lock automatic. I mean
/vcar (the car is create and the player is put in) and locked the car for all players automatic.
This is the codec i have.
How i can add it, for when the car is createm is locked?
/vcar (the car is create and the player is put in) and locked the car for all players automatic.
This is the codec i have.
Код:
dcmd_vcar(playerid, params[]) { #pragma unused params if(PlayerData[playerid][VIP] == 1) { new Float:X,Float:Y,Float:Z,Float:Angle,carid; new id = PlayerData[playerid][VIPCar]; GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle); carid = CreateVehicle(id,X,Y,Z,Angle,-1,-1,50000); PutPlayerInVehicle(playerid,carid,0); TogglePlayerControllable(playerid,true); if(GetPlayerInterior(playerid)) LinkVehicleToInterior(carid,GetPlayerInterior(playerid)); SetVehicleVirtualWorld(carid,GetPlayerVirtualWorld(playerid)); return SendClientMessage(playerid, COLOUR_ORANGE, "You have spawned your VIP Vehicle."); } else return SendClientMessage(playerid, COLOUR_WHITE, "SERVER: Unknow command."); }