admin help
#1

how do i make it so i can make it so that if i level 5 i can do level 1-5


plz help
Reply
#2

Download an admin fs,and there you go.

Ecko
Reply
#3

if(aAdmin[playerid] <= 5)

you need to to use <=
Reply
#4

thank you
Reply
#5

Quote:
Originally Posted by ► James_Alex
if(aAdmin[playerid] <= 5)

you need to to use <=
Didn't he asked about /setlevel ?

Ecko
Reply
#6

just 1 other thing how could i make this work....



Код:
dcmd_detail(playerid, params[])
{
if (strlen(params))
	{
		if (IsPlayerConnected(playerid))
		{
  new string[48];
  format(string, sizeof(string), "-- You Have %s In Your Bank --", gPlayerInfo[playerid][PLAYER_BANK]);
  SendClientMessage(0xAAAAAAAA, "--------------------------);
  SendClientMessage(0xAAAAAAAA, string);
  SendClientMessage(0xAAAAAAAA, "--------------------------");
		}
	}

	return 1;
}
Reply
#7

You are not using any params there..

pawn Код:
dcmd_detail(playerid, params[])
{
  #pragma unused params
  new string[48];
  format(string, sizeof(string), "-- You Have %s In Your Bank --", gPlayerInfo[playerid][PLAYER_BANK]);
  SendClientMessage(0xAAAAAAAA, "--------------------------);
  SendClientMessage(0xAAAAAAAA, string);
  SendClientMessage(0xAAAAAAAA, "
--------------------------");
  return 1;
}
Edit: It should be -- You Have %d In Your Bank --
Reply
#8

k thanks
Reply
#9

just one little thing how would i make it so a player can go .....


/announce blah blah


then on the screen in the middle it says "blah blah"
Reply
#10

try
pawn Код:
if(strcmp(cmd, "/announce", true) == 0)
    {
        new length = strlen(cmdtext);
        while ((idx < length) && (cmdtext[idx] <= ' '))
        {
            idx++;
        }
        new offset = idx;
        new result[64];
        while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
        {
            result[idx - offset] = cmdtext[idx];
            idx++;
        }
        result[idx - offset] = EOS;
        if(!strlen(result))
        {
            SendClientMessage(playerid, COLOR_WHITE, "USAGE: /anounce [text]");
            return 1;
        }
        GameTextForAll(result, 5000, 5);
        return 1;

    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)