#1

hello is there a tut or something or could someone tell me how to make a /v [model name] command i dont know how to do it so im just make 1 cmd for every car and its anoying

thanks in advanced
Reply
#2

See the fsdebug filterscript in the SA:MP server package.
Reply
#3

Why not just use a dialog system like this: https://sampforum.blast.hk/showthread.php?tid=97939

They're all categorized into their correct places depending on the type of vehicle they are.
Reply
#4

Quote:
Originally Posted by TheDominator
Посмотреть сообщение
Why not just use a dialog system like this: https://sampforum.blast.hk/showthread.php?tid=97939

They're all categorized into their correct places depending on the type of vehicle they are.
because i like the cmd much better plus it will expand my knowledge more as just making a dialog version is sooo easy it can be done by a 10 year old lol
Reply
#5

Try this:

http://pastebin.com/f3YZK9uU
Reply
#6

Use PLEOMAX'S pvehicle include.

The code can be like this if you're using that include:

pawn Код:
CMD:v(playerid, params[])
{
    new vname[20];
    new cString[80];
    if(IsPlayerInDM[playerid] == No)
    {
        if(!sscanf(params,"s[20]",vname))
        {
            if(!IsPlayerInAnyVehicle(playerid))
            {
                CreateVehicleForPlayer(playerid, vname, -1, -1, 1000.0);
                format(cString,sizeof(cString), "You spawned a %s for yourself! " , vname);
                SendClientMessage(playerid, SKYBLUE, cString);
            }
            else SendClientMessage(playerid, RED, "ERROR:Already in a vehicle");
        }
        else SendClientMessage(playerid,RED, "[USAGE]:/v [CARNAME/CARID] or /vehicle [CARNAME/CARID]");
    }
    else return SendClientMessage(playerid, RED, "Use /exitdm before using vehicle commands! ");
    return 1;
}
Oh and sorry for the DM thing, kinda copied and pasted from my code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)