Newbie chat help
#3

Код:
CMD:n(playerid, params[])
{
new tmpstring[164], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(sscanf(params, "s[128]", tmpstring))
{
SendClientMessage(playerid, NEWBIE, "ERROR: Usage /n [message]");
return 1;
}
if(Adminlevel[playerid] == 1) 
{
format(tmpstring, sizeof(tmpstring), "Helper = [N] %s: %s ", name, tmpstring);
SendClientMessageToAll(0x00E3AEFF, tmpstring);
}

if(Adminlevel[playerid] == 2) 
{
format(tmpstring, sizeof(tmpstring), "Moderator = [N] %s: %s ", name, tmpstring);
SendClientMessageToAll(0x00E3AEFF, tmpstring);
}

if(Adminlevel[playerid] >= 3) 
{
format(tmpstring, sizeof(tmpstring), "Admin = [N] %s: %s ", name, tmpstring);
SendClientMessageToAll(0x00E3AEFF, tmpstring);
}

if(Adminlevel[playerid] == 0) 
{
format(tmpstring, sizeof(tmpstring), "[N] %s: %s ", name, tmpstring);
SendClientMessageToAll(0x00E3AEFF, tmpstring);
}

return 1;
}
Reply


Messages In This Thread
Newbie chat help - by KiiD - 12.06.2012, 06:26
Re: Newbie chat help - by Calgon - 12.06.2012, 06:32
Re: Newbie chat help - by Jikesh - 12.06.2012, 06:36
Re: Newbie chat help - by KiiD - 12.06.2012, 07:00
Re: Newbie chat help - by Jikesh - 12.06.2012, 16:04

Forum Jump:


Users browsing this thread: 1 Guest(s)