/v command with car, and ID name
#1

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)
Код:
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;
}
Reply


Messages In This Thread
/v command with car, and ID name - by Riky35800 - 26.04.2014, 09:03
Re: /v command with car, and ID name - by Riky35800 - 26.04.2014, 12:29
Re: /v command with car, and ID name - by Konstantinos - 26.04.2014, 12:34
Re: /v command with car, and ID name - by Riky35800 - 26.04.2014, 12:56
Re: /v command with car, and ID name - by Eth - 26.04.2014, 13:19
Re: /v command with car, and ID name - by Riky35800 - 27.04.2014, 04:25
Re: /v command with car, and ID name - by Riky35800 - 27.04.2014, 05:00

Forum Jump:


Users browsing this thread: 1 Guest(s)