26.04.2014, 09:03
Hello! I have a /vehicle command. the server have 2 virtual world. 1 = Stunt, 2 = Zombi world.
The /v command is works perfectly. If I enter the vehicle name, then put a vehicle in virtualworld 1, or 2.
There is nothing wrong. The problem is begin to: only works with vehicle id. How to solve it, is to write the name.
Example: /v Sultan And when you enter into it put me in the car (PutPlayerInVehicle)
The /v command is works perfectly. If I enter the vehicle name, then put a vehicle in virtualworld 1, or 2.
There is nothing wrong. The problem is begin to: only works with vehicle id. How to solve it, is to write the name.
Example: /v Sultan And when you enter into it put me in the car (PutPlayerInVehicle)
Код:
CMD:v(playerid, params[]) { new vehicleid; if(sscanf(params, "d", vehicleid))return SendClientMessage(playerid, -1, "{73abff}<{ffffff}BSR{73abff}> {ffffff}Usage: /v [id]"); { new Float:X, Float:Y, Float:Z, Float:Angle, carObject; GetPlayerPos(playerid, X, Y, Z); GetPlayerFacingAngle(playerid, Angle); carObject = CreateVehicle(vehicleid, X, Y, Z, Angle, random(10), random(10), -1); SetVehicleVirtualWorld(carObject, GetPlayerVirtualWorld(playerid)); } return 1; }