27.08.2009, 10:02
how do i make it so i can make it so that if i level 5 i can do level 1-5
plz help
plz help
Originally Posted by ► James_Alex
if(aAdmin[playerid] <= 5)
you need to to use <= |
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; }
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;
}
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;
}