[POMOC] /adm ili /pm

Započeo [NL] George, Novembar 21, 2012, 16:37:58 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: GTA RP
Detaljan opis problema: treba mi komanda /adm tj /pm za admine recimo ako je admin 1338 da izbaci:
Head Admin %s kaze: %s
Dio skripte: //
Neke slike/video za lakse dobivanje pomoci(neobavezno): //

Ako je to sto ja mislim evo to ovo

CMD:pm(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1 || IsPlayerAdmin(playerid))
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SCM(playerid, COLOR_GREY, "   Niste se ulogovali!");
return 1;
}
new string[512 char],sendername[MAX_PLAYER_NAME],giveplayerid,giveplayer[MAX_PLAYER_NAME],result[128];
GetPlayerName(playerid, sendername,sizeof(sendername));
if(sscanf(params,"us[128]",giveplayerid,result)) return SCM(playerid, COLOR_GRAD2, "Koriscenje: /pm [playerID/DeoImena] [Text]");
if(giveplayerid != INVALID_PLAYER_ID)
{
if(HidePM[giveplayerid] > 0)
{
SCM(playerid, COLOR_GREY, "** Taj igrac blokira privatne poruke!");
return 1;
}
if(PlayerInfo[playerid][pMuted] == 1)
{
SCM(playerid, TEAM_CYAN_COLOR, "Ne mozete da pricate ucutkani ste");
return 1;
}
new arank[64];
if(PlayerInfo[playerid][pAdmin] == 1) { arank = "Moderator"; }
        else if(PlayerInfo[playerid][pAdmin] == 2) { arank = "Level 2 Admin"; }
        else if(PlayerInfo[playerid][pAdmin] == 3) { arank = "Level 3 Admin"; }
        else if(PlayerInfo[playerid][pAdmin] == 4) { arank = "Level 4 Admin"; }
        else if(PlayerInfo[playerid][pAdmin] == 1337) { arank = "Skripter"; }
        else if(PlayerInfo[playerid][pAdmin] == 1338) { arank = "Head Admin"; }
        else if(PlayerInfo[playerid][pAdmin] == 1339) { arank = "Suvlasnik"; }
        else if(PlayerInfo[playerid][pAdmin] == 1340) { arank = "Vlasnik"; }
        else { arank = "Moderator"; }
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "* PM %s %s (%d): %s", arank, sendername, playerid, (result));
SCM(giveplayerid, 0xE5C43EAA, string);
format(string, sizeof(string), "* PM Poslata igracu %s (%d): %s", giveplayer, giveplayerid, (result));
SCM(playerid, 0xBBA033AA, string);
return 1;
}
}
}
return 1;
}
CMD:adm(playerid, params[])
{
return cmd_pm(playerid, params);
}