script [help] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: script [help] (
/showthread.php?tid=91863)
script [help] -
sggassasin - 17.08.2009
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
Re: script [help] -
Googles - 17.08.2009
well there should be a Rcon command call /rcon makeadmin [ID] [Level]
Re: script [help] -
sggassasin - 17.08.2009
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
Re: script [help] -
sggassasin - 18.08.2009
*bumb* could someone give me some help