Settime dcmd into normal command
#6

These errors are because of your includes or something. You asked to transform that command into normal command and just for RCON admins. That's what i did. I will make a simple settime command for you:
Код:
	if(strcmp(cmd, "/settime", true) == 0)
		{
		tmp=strtok(cmdtext, idx);
		if(IsPlayerAdmin(playerid))
			{
			SetWorldTime(strval(tmp));
			return 1;
			}
		else
		    {
		    SendClientMessage(playerid, COLOR_RED, "SERVER: You are not admin.");
		    return 1;
		    }
		}
Reply


Messages In This Thread
Settime dcmd into normal command - by Puzi - 23.08.2009, 15:18
Re: Settime dcmd into normal command - by ronyx69 - 23.08.2009, 15:22
Re: Settime dcmd into normal command - by Puzi - 23.08.2009, 15:32
Re: Settime dcmd into normal command - by ronyx69 - 23.08.2009, 15:33
Re: Settime dcmd into normal command - by Puzi - 23.08.2009, 15:37
Re: Settime dcmd into normal command - by ronyx69 - 23.08.2009, 15:42
Re: Settime dcmd into normal command - by Puzi - 23.08.2009, 15:44

Forum Jump:


Users browsing this thread: 1 Guest(s)