Jump to content

Recommended Posts

Posted (edited)

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
Posted (edited)
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
  • 1 year later...
Posted
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!");

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.