Official Soldat Forums
Server Talk => Scripting Discussions and Help => Topic started by: Centurion on November 05, 2008, 12:13:23 pm
-
If I say /secret as a command and it will admin the guy who says it?
please help :)
-
function OnPlayerCommand(ID: Byte; Text: string): boolean;
begin
if Text = '/secret' then begin
Command('/admip '+GetPlayerStat(ID,'IP');
WriteConsole(ID,'You are now admin.',$FF00FF00);
end
end;
-
/adm ID works too
-
/adm ID works too
yes, but ip > name
the guy could leave and some other guy might change his name into the guy with admin and ya know
obvoisly thats not likely gonna happen but just to be sure..
-
i think its very unlikely that the /adm command is name-based. afaik it just admins the given ID until he/she leaves. /adm is a better command if you have ynamic ip, because else youll get a huge remote.txt
-
i think /adm still gets the player's ip and saves it in remote.txt , so they have the same effect
-
hmm seems so, my bad. somehow i thought it worked in the same way as /adminlog (dont tell me that also adds your ip :O)
-
hmm seems so, my bad. somehow i thought it worked in the same way as /adminlog (dont tell me that also adds your ip :O)
doesnt /adminlog work just as long as you're in the server?..
-
/adm - adds player ip to remote.txt
/admip - same but player doesn't needs to be in-game
/adminlog - admin until leave
-
@dnmr, yea, thats what i tried to say :P
@gizd: yea