27.01.2014, 18:03
pawn Код:
CMD:s(playerid,params[])
{
if(zInfo[playerid][adminlvl]==0) return 0;
new kokieadmin [512], tekstas[900], Zinute[256];
if(zInfo[playerid][adminlvl] == 1) kokieadmin = "Administratorius {FFFF00}I{00FF00} lygio";
if(zInfo[playerid][adminlvl] == 2) kokieadmin = "Administratorius {FFFF00}II{00FF00} lygio";
if(zInfo[playerid][adminlvl] == 3) kokieadmin = "Administratorius {FFFF00}III{00FF00} lygio";
if(zInfo[playerid][adminlvl] == 4) kokieadmin = "Savininkas";
if(zInfo[playerid][adminlvl] == 5) kokieadmin = "Scripteris";
if(zInfo[playerid][emigrator]) kokieadmin = "{FFFF00}Emigracijų{00FF00} priћiūrėtojas";
if(zInfo[playerid][adminator]) kokieadmin = "{FFFF00}Administratorių{00FF00} priћiūrėtojas";
if(zInfo[playerid][vipator]) kokieadmin = "{FFFF00}Vipų{00FF00} priћiūrėtojas";
if(zInfo[playerid][prezidentas]) kokieadmin = "{FFFF00}Direktorių{00FF00} priћiūrėtojas";
if(sscanf(params, "s",tekstas)) return SendClientMessage(playerid, BLUE, "* Raљyti praneљima ћaidėjams: /s [Tekstas]");
new vardas[MAX_PLAYER_NAME];
GetPlayerName(playerid,vardas,MAX_PLAYER_NAME);
format(kokieadmin,sizeof(kokieadmin),"{00FF00}%s {FFFF00}%s {00FF00}praneљa:",kokieadmin,vardas);
format(Zinute,sizeof(Zinute),"{009966}%s",tekstas);
SendClientMessageToAll( -1, kokieadmin );
SendClientMessageToAll( -1, Zinute );
return 1;
}