[HELP]/v [name]
#1

sorry for being annoying but i still have problem
this code allow u to spawn vehicle BUT u must know the the number id of vehicle
Код:
CMD:v(playerid, params[])
{
    new carId, Float:x, Float:y, Float:z;
    if(GetPVarInt(playerid, "inStunt") != 1) return SendClientMessage(playerid, -1, ""#COL_RED"[ERROR]Command Ini Hanya Berlaku Di /stunt!");
	if(sscanf(params, "i", carId)) return SendClientMessage(playerid, -1, "Usage: /v carId");
    if(carId < 400 || carId > 611) return SendClientMessage(playerid, -1, "Invalid car Id, (400 - 611)");
    GetPlayerPos(playerid, x, y, z);
    Pveh[playerid] = CreateVehicle(carId, x, y + 5, z, 0,-1, -1, -1);
    SetVehicleVirtualWorld(Pveh[playerid], 12); // I changed this line
    SendClientMessage(playerid, -1, "Car spawned at your location!");
    return 1;
}
i need is like this when u type /v turismo it spawn turismo (all vehicle )
and when u type /v turi it spawn turismo too(when someone not type complete vehicle name it rever to the near vehicle name)
please help
Reply


Messages In This Thread
[HELP]/v [name] - by Horrible - 06.07.2011, 05:53
Re: [HELP]/v [name] - by Wesley221 - 06.07.2011, 06:27
Re: [HELP]/v [name] - by Horrible - 06.07.2011, 08:40
Re: [HELP]/v [name] - by PrawkC - 06.07.2011, 08:42
Re: [HELP]/v [name] - by Horrible - 06.07.2011, 08:49
Re: [HELP]/v [name] - by SmileyForCheat - 06.07.2011, 09:15
Re: [HELP]/v [name] - by Wesley221 - 06.07.2011, 14:49
Re: [HELP]/v [name] - by Deskoft - 06.07.2011, 15:05
Re: [HELP]/v [name] - by Horrible - 07.07.2011, 09:05
Re: [HELP]/v [name] - by Horrible - 07.07.2011, 12:09

Forum Jump:


Users browsing this thread: 4 Guest(s)