New Command help
#1

Hi I'm using VX-RP And i'm wondering if it is Possible to make a /giveadmin [id] [level] Command, And a /setnewbiespawn command, If this is possible would someone mind helping me out by writing the Script line and i'll add it in.
Please
Reply
#2

pawn Код:
// At The Top
#include <a_samp>
#include <zcmd>
#include <sscanf2>

CMD:giveadmin(playerid, params[])
{
    new
        id,
        level;
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You cannot use this command!");
    if(sscanf(params, "ri", id, level)) return SendClientMessage(playerid, -1, "Usage: /giveadmin [id] [level]");
    if(level > 10 || level < 0) return SendClientMessage(playerid, -1, "ERROR: You can use levels 0 to 10");
    new
        Sstring[128],
        name2[MAX_PLAYER_NAME];
    GetPlayerName(id, name2, sizeof(name2));
    format(Sstring, sizeof(Sstring), "%s (On how it saved)", name2);
    Your_Variable[id][enum of level] = level;
    return 1;
}
Reply
#3

why do u need the /setnewbiespawn command for, u can find it in the latest version of VX-RP 2 0.3d
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)