Jump to content

Comanda pentru acces admin level 1


Onehitkill

Recommended Posts

Salut vreau si eu ca aceasta comanda sa fie pt acces admin level 1, poate ma ajutati voi s-o editati, Multumesc mult

 

Spoiler

CMD:onehit(playerid,params[])
{
    new string[128],namee[30];
    GetPlayerName(playerid, namee, 24);
    foreach(Player, i)
    PlayAudioStreamForPlayer(i, "https://www118.zippyshare.com/d/BBvumv3h/13312/onehitl19.mp3");
    format(string, sizeof(string), "{3399FF}[RPG ACS] {FF6969}%s {FFFFFF}a activat soundul {FF0000}Onehit", namee);
    SendClientMessageToAll(0xFFFF00FF, string);
    return 1;
}

 

Edited by Onehitkill
Link to comment
Share on other sites

CMD:onehit(playerid,params[])
{
	if(PlayerInfo[playerid][pAdmin] >= 1) {
    new string[128],namee[30];
    GetPlayerName(playerid, namee, 24);
    foreach(Player, i)
    PlayAudioStreamForPlayer(i, "https://www118.zippyshare.com/d/BBvumv3h/13312/onehitl19.mp3");
    format(string, sizeof(string), "{3399FF}[RPG ACS] {FF6969}%s {FFFFFF}a activat soundul {FF0000}Onehit", namee);
    SendClientMessageToAll(0xFFFF00FF, string);
	else return SendClientMessage(playerid, COLOR_RED, "Nu ai acces la aceasta comanda!");
	return 1;
    }
}

 

Edited by AndreiAdv
Link to comment
Share on other sites

  • 1 year later...
La 01.12.2019 la 1:14, Onehitkill a spus:

Salut vreau si eu ca aceasta comanda sa fie pt acces admin level 1, poate ma ajutati voi s-o editati, Multumesc mult

 

  Ascunde conținuturi

CMD:onehit(playerid,params[])
{
    new string[128],namee[30];
    GetPlayerName(playerid, namee, 24);
    foreach(Player, i)
    PlayAudioStreamForPlayer(i, "https://www118.zippyshare.com/d/BBvumv3h/13312/onehitl19.mp3");
    format(string, sizeof(string), "{3399FF}[RPG ACS] {FF6969}%s {FFFFFF}a activat soundul {FF0000}Onehit", namee);
    SendClientMessageToAll(0xFFFF00FF, string);
    return 1;
}

 

Adauga asa:
if(pInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_UNKNOWN, "Nu ai acces la aceasta comanda!");

sau PlayerInfo inloc de pInfo...

Sau daca vrei doar pentru admin 1 incearca asa:

if(pInfo[playerid][pAdmin] < != 1) return SCM(playerid, COLOR_UNKNOWN, "Nu ai acces la aceasta comanda!");

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.