30.05.2016, 13:42
@F1N4L
PHP код:
CMD:m(playerid, params[])
{
if(CallRemoteFunction("GetPlayerAdminLevel","i",playerid) < 1 || (OutraV[playerid] == -1))
new tmp[256], Index;
tmp = strtok(params,Index);
new string[128]; GetPlayerName(playerid, string, sizeof(string));
if(!strlen(params)) return SendClientMessage(playerid, -1, "{6EF83C}Use:{FFFFFF} /M [Texto]");
format(string, sizeof(string), " ~ Chat: %s: %s", PlayerName(playerid), params[0]);
for(new I = 0; I < MAX_PLAYERS; I ++)
{
if(IsPlayerConnected(I))
{
if(!IsPlayerAdmin(I) && OutraV[I] == 10) SendClientMessage(I, -1, string);
if(IsPlayerAdmin(I)) SendClientMessage(I, -1, string);
}
}
return 1;
}