/warn command for players ?
#10

Quote:
Originally Posted by UnforgiveNNN
Посмотреть сообщение
Got it from Mariciuc Thank you and waitinng your asnwer
Quote:
Originally Posted by UnforgiveNNN
Посмотреть сообщение
And how to made it all players will use it. not just an admin




Код:
CMD:warn(playerid, params[])
{
    if(pInfo[playerid][pAdmin] == 0) return SendClientMessage(playerid, FactColor[10], "You are not authorized to use that command !");

	new id, reason[32], String[128];
	if(sscanf(params, "us", id, reason)) return SendClientMessage(playerid, FactColor[11], "USAGE: /warn [PlayerID/PartOfName][Reason]");
	if(!IsPlayerConnected(id)) return SendClientMessage(playerid, FactColor[11], "That player it's not connected !");

	format(String, sizeof(String), "Adm Cmd: %s was warned by %s, reason: %s", Name(id), Name(playerid), reason);
	SendClientMessageToAll(0xA52A2AFF, String);


	return 1;
}
That's what i got by removing what you say
Sorry to ask such a silly question, but if this is your own code, how come you need to ask others what to remove?

Just curious as to how it is so hard to remove such simple code, especially when YOU claim it is your own code.

There are also ways to make the code a lot more neater, at the moment it is just a blob of messiness, just trying to help/suggest things for future coding.

Thanks,
CM707
Reply


Messages In This Thread
/warn command for players ? - by UnforgiveNNN - 30.07.2015, 06:37
Re: /warn command for players ? - by Mariciuc223 - 30.07.2015, 06:48
Re: /warn command for players ? - by Battlezone - 30.07.2015, 08:51
Re: /warn command for players ? - by UnforgiveNNN - 30.07.2015, 10:22
Re: /warn command for players ? - by Mariciuc223 - 30.07.2015, 10:24
Re: /warn command for players ? - by Battlezone - 30.07.2015, 10:28
Re: /warn command for players ? - by UnforgiveNNN - 30.07.2015, 10:57
Re: /warn command for players ? - by Battlezone - 30.07.2015, 10:59
Re: /warn command for players ? - by UnforgiveNNN - 30.07.2015, 11:16
Re: /warn command for players ? - by XXCrazyMan707XX - 31.07.2015, 11:24

Forum Jump:


Users browsing this thread: 1 Guest(s)