Add commands HELP
#7

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(v, 1, cmdtext);
    return 0;
}

dcmd_v(playerid, params[]) //Tested and working
{
    new spawnvehicleid;
    if(sscanf(params, "d", spawnvehicleid)) return SendClientMessage(playerid, COLOR_USAGE, "USAGE: /v (vehicle id)");
    else if(spawnvehicleid > 399 && spawnvehicleid < 612)
    {
        SendClientMessage(playerid, COLOR_ADMIN, "Vehicle Spawned!");

        CreateVehicleEx(playerid,spawnvehicleid, X,Y,Z+1, Angle, -1, -1, -1);
    }
    else SendClientMessage(playerid, COLOR_USAGE,"USAGE: Minimum 400 || Maximum 611");
    return 1;
}
At the Unlimited nitro, press at the "Search" text in my signature and search for Unlimted Notro?
Reply


Messages In This Thread
Add commands HELP - by rokata555 - 14.02.2011, 19:13
Re: Add commands HELP - by Stunt_Guy - 14.02.2011, 19:14
Re: Add commands HELP - by rokata555 - 14.02.2011, 19:18
Re: Add commands HELP - by Stunt_Guy - 14.02.2011, 19:27
Re: Add commands HELP - by rokata555 - 14.02.2011, 19:35
Re: Add commands HELP - by Stunt_Guy - 14.02.2011, 19:36
Re: Add commands HELP - by Unknown123 - 14.02.2011, 19:39

Forum Jump:


Users browsing this thread: 1 Guest(s)