HELP REP++++++++++
#3

This should work, test.

What I have been to zcmd, this command processor is much faster.

Add "SPD"(define).

pawn Код:
#include <a_samp>
#include <zcmd>

#define COLOR_YELLOW (-1)
#define COLOR_RED (-1)
#define COLOR_PINK (-1)
#define COLOR_GREEN(-1)

enum Data
{
    pAdmin
};

new Player[MAX_PLAYERS][Data];

command(changeclass, playerid, params[])
{
    #pragma unused params
    SPD(playerid,3,DSL,"{FFFFFF}Change your class","Sniper     ~    20 Kills\nEnginner     ~    100 Kills\nSoldier     ~    50 Kills\nRookie     ~    0 Kills","Select","Exit");
    return 1;
}

command(changeteam, playerid, params[])
{
    #pragma unused params
    SPD(playerid,5,DSL,"{FFFFFF}Select your team","{0000FF}Ukraine\n{FF0000}Russia","Select","");
    return 1;
}

command(kill, playerid, params[])
{
    #pragma unused params
    SetPlayerHealth(playerid, 0.0);
    SetPlayerArmour(playerid, 0.0);
    return 1;
}

command(armour, playerid, params[])
{
    #pragma unused params
    if(GetPlayerMoney(playerid) <10000)
    {
        GivePlayerMoney(playerid,-10000);
        SetPlayerArmour(playerid,100);
        SendClientMessage(playerid,COLOR_YELLOW,"[SERVER]:You have been armoured 10000$ have been taken from your account.");
    }
    else
    {
        SendClientMessage(playerid,0xAA3333AA, "[SERVER]:You need 10000$ to use this command");
    }
    return 1;
}

command(health, playerid, params[])
{
    #pragma unused params
    if(GetPlayerMoney(playerid) <10000)
    {
        GivePlayerMoney(playerid,-10000);
        SetPlayerHealth(playerid,100);
        SendClientMessage(playerid,COLOR_YELLOW,"[SERVER]:You have been healed 10000$ have been taken from your account.");
    }
    else
    {
        SendClientMessage(playerid,0xAA3333AA, "[SERVER]:You need 10000$ to use this command");
    }
    return 1;
}

command(dance, playerid, params[])
{
    #pragma unused params
    SetPlayerSpecialAction(playerid, 5);
    SendClientMessage(playerid, COLOR_YELLOW , "[SERVER]:You are dancing.");
    return 1;
}

command(handsup, playerid, params[])
{
    #pragma unused params
    SetPlayerSpecialAction(playerid, 10);
    SendClientMessage(playerid, COLOR_YELLOW , "[SERVER]:Your hands are up.");
    return 1;
}

command(jetpack, playerid, params[])
{
    #pragma unused params
    if(Player[playerid][pAdmin] >= 1)
    {
        SetPlayerSpecialAction(playerid, 2);
        SendClientMessage(playerid, COLOR_YELLOW , "[SERVER]:JetPack spawned.");
    }
    else
    {
        SendClientMessage(playerid,COLOR_RED,"[SERVER]:You are not allowed to use this command.");
    }
    return 1;
}

command(night, playerid, params[])
{
    #pragma unused params
    SetPlayerTime(playerid,23,50);
    return 1;
}

command(day, playerid, params[])
{
    #pragma unused params
    SetPlayerTime(playerid,6,55);
    return 1;
}

command(ep, playerid, params[])
{
    #pragma unused params
    GivePlayerWeapon(playerid, 46, 1);
    SendClientMessage(playerid, COLOR_YELLOW , "[SERVER]:Emergency Parachute spawned");
    return 1;
}

command(adminrefill, playerid, params[])
{
    #pragma unused params
    if(Player[playerid][pAdmin] >= 1)
    {
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
        SendClientMessage(playerid, COLOR_YELLOW , "[SERVER]:You restored your health and armour");
    }
    else
    {
        SendClientMessage(playerid, COLOR_YELLOW , "[SERVER]:You are not allowed to use this command");
    }
    return 1;
}

command(onduty, playerid, params[])
{
    #pragma unused params
    if(Player[playerid][pAdmin] >= 1)
    {
        SetPlayerHealth(playerid, 999999);
        SetPlayerArmour(playerid, 999999);
        SendClientMessage(playerid, COLOR_YELLOW , "[SERVER]:You are now admin onduty");
        SetPlayerColor(playerid, COLOR_PINK);
        SetPlayerSkin(playerid, 217);
        GivePlayerWeapon(playerid, 38 , 999999);
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED , "[SERVER]:You are not allowed to use this command");
    }
    return 1;
}

command(ukrainebase, playerid, params[])
{
    #pragma unused params
    if(Player[playerid][pAdmin] >= 1)
    {
        SetPlayerPos(playerid,-250.8406,2598.8433,62.8582);
        SendClientMessage(playerid,COLOR_YELLOW,"[SERVER]:You teleported to Ukraine Base");
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED , "[SERVER]:You are not allowed to use this command");
    }
    return 1;
}

command(russiabase, playerid, params[])
{
    #pragma unused params
    if(Player[playerid][pAdmin] >= 1)
    {
        SetPlayerPos(playerid,-149.9057,1079.6403,19.7422);
        SendClientMessage(playerid,COLOR_YELLOW,"[SERVER]:You teleported to Russia Base");
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED , "[SERVER]:You are not allowed to use this command");
    }
    return 1;
}

command(duel, playerid, params[])
{
    #pragma unused params
    SetPlayerInterior(playerid,10);
    SetPlayerColor(playerid,COLOR_YELLOW);
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid,31,99999);
    GivePlayerWeapon(playerid,27,99999);
    GivePlayerWeapon(playerid,24,99999);
    SetPlayerPos(playerid,-975.975708,1060.983032,1345.671875);
    GameTextForPlayer(playerid,"~b~Welcome to ~r~Duel", 5000, 1);
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 100);
    SetPlayerSkin(playerid,73);
    return 1;
}

command(duel11, playerid, params[])
{
    #pragma unused params
    SetPlayerInterior(playerid,10);
    SetPlayerColor(playerid, -1);
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid,31,99999);
    GivePlayerWeapon(playerid,27,99999);
    GivePlayerWeapon(playerid,24,99999);
    SetPlayerPos(playerid,-1130.9126,1057.6101,1346.4174);
    GameTextForPlayer(playerid,"~b~Welcome to ~r~Duel", 5000, 1);
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 100);
    SetPlayerSkin(playerid,287);
    return 1;
}

command(skin, playerid, params[])
{
    #pragma unused params
    if(Player[playerid][pAdmin] >= 1)
    {
        SetPlayerSkin(playerid,23);
        SendClientMessage(playerid,COLOR_YELLOW,"[SERVER]:You have changed your skin to id 23.");
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED,"[SERVER]:You are not allowed to use this command.");
    }
    return 1;
}

command(skin1, playerid, params[])
{
    #pragma unused params
    if(Player[playerid][pAdmin] >= 1)
    {
        SendClientMessage(playerid,COLOR_YELLOW,"[SERVER]:You have changed your skin to id 29.");
        SetPlayerSkin(playerid,29);
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED,"[SERVER]:You are not allowed to use this command.");
    }
    return 1;
}

command(getcar, playerid, params[])
{
    #pragma unused params
    if(Player[playerid][pAdmin] >= 1)
    {
        new Float:X;
        new Float:Y;
        new Float:Z;
        GetPlayerPos(playerid,X,Y,Z);
        CreateVehicle(411,X,Y+5,Z,1,126,126,9000);
        SendClientMessage(playerid,COLOR_YELLOW,"[SERVER]:You spawned a Infernus");
    }
    else
    {
        SendClientMessage(playerid,COLOR_RED, "[SERVER]:You are not allowed to use this command.");
    }
    return 1;
}

command(getbike, playerid, params[])
{
    #pragma unused params
    if(Player[playerid][pAdmin] >= 1)
    {
        new Float:X;
        new Float:Y;
        new Float:Z;
        GetPlayerPos(playerid,X,Y,Z);
        CreateVehicle(522,X,Y+5,Z,1,126,126,9000);
        SendClientMessage(playerid,COLOR_YELLOW,"[SERVER]:You spawned a NRG-500");
    }
    else
    {
        SendClientMessage(playerid,COLOR_RED, "[SERVER]:You are not allowed to use this command.");
    }
    return 1;
}

command(getplane, playerid, params[])
{
    #pragma unused params
    if(Player[playerid][pAdmin] >= 1)
    {
        new Float:X;
        new Float:Y;
        new Float:Z;
        GetPlayerPos(playerid,X,Y,Z);
        CreateVehicle(520,X,Y+10,Z,1,126,126,9000);
        SendClientMessage(playerid,COLOR_YELLOW,"[SERVER]:You spawned a Hydra");
    }
    else
    {
        SendClientMessage(playerid,COLOR_RED, "[SERVER]:You are not allowed to use this command.");
    }
    return 1;
}

command(flip, playerid, params[])
{
    #pragma unused params
    if(Player[playerid] [pAdmin] >=1)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            new vehicleid;
            new Float:angle;
            vehicleid= GetPlayerVehicleID(playerid);
            GetVehicleZAngle(vehicleid,angle);
            SetVehicleZAngle(vehicleid,angle);
            SendClientMessage(playerid,COLOR_YELLOW,"[SERVER]:Your vehicle has been fliped.");
        }
        else
        {
            SendClientMessage(playerid,COLOR_YELLOW,"[SERVER]:You need to be inside a car to use this command");
        }
    }
    else
    {
        SendClientMessage(playerid,COLOR_RED,"[SERVER]:You are not allowed to use this command.");
    }
    return 1;
}

command(tune, playerid, params[])
{
    #pragma unused params
    if(Player[playerid] [pAdmin] >=1)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            new vehicleid;
            vehicleid= GetPlayerVehicleID(playerid);
            RemoveVehicleComponent(vehicleid,1010);
            RemoveVehicleComponent(vehicleid,1000);
            RemoveVehicleComponent(vehicleid,1087);
            SetVehicleNumberPlate(vehicleid,"VIP1377");
            AddVehicleComponent(vehicleid,1010);
            AddVehicleComponent(vehicleid,1000);
            AddVehicleComponent(vehicleid,1087);
            SendClientMessage(playerid,COLOR_YELLOW,"[SERVER]:Your vehicle has been tuned.");
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"[SERVER]:You need to be inside a car to use this command.");
        }
    }
    else
    {
        SendClientMessage(playerid,COLOR_RED, "[SERVER]:You are not allowed to use this command.");
    }
    return 1;
}

command(respawncar, playerid, params[])
{
    #pragma unused params
    if(Player[playerid] [pAdmin] >=1)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            new vehicleid;
            vehicleid= GetPlayerVehicleID(playerid);
            SetVehicleToRespawn(vehicleid);
        }
        else
        {
            SendClientMessage(playerid,COLOR_YELLOW,"[SERVER]:You need to be inside a car to use this command");
        }
    }
    else
    {
        SendClientMessage(playerid,COLOR_RED,"[SERVER]:You are not allowed to use this command.");
    }
    return 1;
}
command(destroycar, playerid, params[])
{
    #pragma unused params
    if(Player[playerid] [pAdmin] >=1)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            new vehicleid;
            vehicleid= GetPlayerVehicleID(playerid);
            DestroyVehicle(vehicleid);
        }
        else
        {
            SendClientMessage(playerid,COLOR_YELLOW,"[SERVER]:You need to be inside a car to use this command");
        }
    }
    else
    {
        SendClientMessage(playerid,COLOR_RED, "[SERVER]:You are not allowed to use this command.");
    }
    return 1;
}
command(fix, playerid, params[])
{
    #pragma unused params
    if(Player[playerid][pAdmin] >= 1)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            RepairVehicle(GetPlayerVehicleID(playerid));
            SendClientMessage(playerid,COLOR_RED,"[SERVER]:You have repaired your vehicle");
        }
        else
        {
            SendClientMessage(playerid, COLOR_RED,"[SERVER]:You are not driving any car");
        }
    }
    else
    {
        SendClientMessage(playerid,COLOR_YELLOW,"[SERVER]:You are not allowed to use this command");
    }
    return 1;
}
command(restart, playerid, params[])
{
    #pragma unused params
    if(Player[playerid][pAdmin] >= 1)
    {
        SendClientMessageToAll(COLOR_YELLOW,"[SERVER]:Server is restarting be patient do not quit please");
        GameTextForAll("~G~Server Restarting", 9000, 1);
        SendRconCommand("gmx");

    }
    else
    {
        SendClientMessage(playerid, COLOR_RED, "[SERVER]:You are not allowed to use this command");
    }
    return 1;
}
command(desertairport, playerid, params[])
{
    #pragma unused params
    if(Player[playerid][pAdmin] >= 1)
    {
        SetPlayerPos(playerid,392.2665,2535.1682,16.5429);
        SendClientMessage(playerid,COLOR_YELLOW,"[SERVER]:You teleported to Desert Airport");
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED , "[SERVER]:You are not allowed to use this command");
    }
    return 1;
}
Reply


Messages In This Thread
HELP REP++++++++++ - by Gogeta101 - 29.08.2014, 00:45
Re: HELP REP++++++++++ - by Jefff - 29.08.2014, 01:05
Re: HELP REP++++++++++ - by JuanStone - 29.08.2014, 01:25
Re: HELP REP++++++++++ - by Don_Cage - 29.08.2014, 02:19
Re: HELP REP++++++++++ - by Gogeta101 - 29.08.2014, 10:43
Re: HELP REP++++++++++ - by Gogeta101 - 29.08.2014, 12:42
Re: HELP REP++++++++++ - by Clad - 29.08.2014, 12:47
Re: HELP REP++++++++++ - by JuanStone - 30.08.2014, 00:48

Forum Jump:


Users browsing this thread: 3 Guest(s)