[Help]4 Errors, Warn command.
#3

Код:
		    format(string, sizeof(string), "You've set your coord to %f, %f, %f", x, y, z);
		    SendClientMessage(playerid, 0xBBBBBBAA, string);
	 	}
	}
 	return 1;
}
//warn cmd
dcmd_warn(playerid,params[]) {
    if(PlayerInfo[playerid][pAdmin] >= 1) {
        new tmp = strtok(params,Index);
        new tmp2 = strtok(params,Index);
	    if(!strlen(tmp) || !strlen(tmp2)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /warn [playerid] [reason]");
    	new warned = strval(tmp), str[128];
    	new sendername[MAX_PLAYER_NAME];
    	new giveplayer[MAX_PLAYER_NAME];
	//	if(PlayerInfo[warned][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,"ERROR: You cannot use this command on this admin");
Reply


Messages In This Thread
[Help]4 Errors, Warn command. - by vannesenn - 18.01.2012, 12:03
Re: [Help]4 Errors, Warn command. - by Konstantinos - 18.01.2012, 12:06
Re: [Help]4 Errors, Warn command. - by vannesenn - 18.01.2012, 12:18
Re: [Help]4 Errors, Warn command. - by Konstantinos - 18.01.2012, 12:24
Re: [Help]4 Errors, Warn command. - by vannesenn - 18.01.2012, 12:27
Re: [Help]4 Errors, Warn command. - by thimo - 18.01.2012, 12:37
Re: [Help]4 Errors, Warn command. - by vannesenn - 18.01.2012, 12:45
Re: [Help]4 Errors, Warn command. - by thimo - 18.01.2012, 12:59
Re: [Help]4 Errors, Warn command. - by vannesenn - 18.01.2012, 13:38
Re: [Help]4 Errors, Warn command. - by niyaz - 20.03.2012, 20:08

Forum Jump:


Users browsing this thread: 2 Guest(s)