script [help]
#1

hi there i was woundering how i would be able to give someone a veribale like i go

/rcon makesuperadmin [Playerid] [level]

so when that admin types that it gives the person ([playerid]) a varibal


thx for your time
Reply
#2

well there should be a Rcon command call /rcon makeadmin [ID] [Level]
Reply
#3

Quote:
Originally Posted by ******s
well there should be a Rcon command call /rcon makeadmin [ID] [Level]
there isent i alredy looked i just need some help plox im useing this ....


Код:
public OnRconCommand(cmd[])
{
  rcmd(makesuperadmin, 14, cmd); // because makesuperadmin has 14 characters.
  return 0;
}

rcmd_makesuperadmin(command[])
{
  return 1;
}
all i need is something like this added on to it


Код:
new id;
	if (sscanf(params, "u", id)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/makesuperadmin <playerid> <level>\"");
	else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Player not found");
	else if (ifplayerissuperadmin == 1) SendClientMessage(playerid, 0xFF0000AA, " That Player Is Alredy A Super Admin");
       else
 {
	Ifplayerissuperadmin = 1;
	}
so thx for your time
Reply
#4

*bumb* could someone give me some help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)