17.02.2016, 14:04
There are two players for example. One is admin, another is normal player
When admin type for example: /fam Normal_Player I am so hungry.
it have to send message to all like: Normal_Player: I am so hungry.
I have problem with this command, if anyone can help, i would appreciate it
When admin type for example: /fam Normal_Player I am so hungry.
it have to send message to all like: Normal_Player: I am so hungry.
I have problem with this command, if anyone can help, i would appreciate it

Код:
//------------------------------------------------------------------------------
YCMD:fam(playerid,params[],help)
{
#pragma unused help
new giveplayer, string[528], result[64];
if(IsPlayerConnected(playerid) && gPlayerLogged[playerid] == 0) return LOGINGRESKA
if(PlayerInfo[playerid][pAdminLevel] < 1) return ADMINGRESKA
if(PlayerInfo[playerid][pSpawn] == 5) return AREAGRESKA
if(AdminDuty[playerid] == 0) return DUTYGRESKA
if(sscanf(params, "u{s[130]}", giveplayer, result)) return SendClientMessage(playerid, C_KORISTENJE, "[UPUTA]: /fam [ID/DioImena] [Tekst]");
if(giveplayer == IPI) return SCM(playerid, MGRESKA"Odabrana osoba nije prijavljena na svoj korisnicki akaunt - provjerite unesene parametre.");
format(string, sizeof(string), "(( ADMIN %s: %s. ))", giveplayer, result);
SendClientMessageToAll(0xF5DEB3AA, string);
return 1;
}

