Jump to content

Recommended Posts

Posted

Helou, am fakut o comanda /kick, mere totu bn pana cand o testez
 

Citat

CMD:kick(playerid, params[])
{
    if(P_Data[playerid][pAdmin] < 1)
        return SCM(playerid, color_gray, AdminOnly);
        
    new userID, reason[32], string[128];
    if(sscanf(params, "us[32]", userID, reason))
        return SCM(playerid, color_gray, "Folosire: /kick <player> <reason>");
    
    format(string, sizeof(string), "{E93623}({FFFFFF}AdmBot{E93623}){E93623}: Jucatorul %s a primit kick de la adminul %s, reason: %s", userID, GetName(playerid), reason);
    SendClientMessageToAll(color_red, string);
    Kick(userID);
    
    return 1;
}

a.png.f0f064172502ff90f0ec2efe545cd90f.png

Stie cnv dc nu apare acolo numele la jucatoru care a loat kick?

ms

Posted (edited)
Chiar acum, IosifR a spus:

Helou, am fakut o comanda /kick, mere totu bn pana cand o testez
 

a.png.f0f064172502ff90f0ec2efe545cd90f.png

Stie cnv dc nu apare acolo numele la jucatoru care a loat kick?

ms

Se mai intampla :) 

Poftim ;) 

CMD:kick(playerid, params[])
{
    if(P_Data[playerid][pAdmin] < 1)
        return SCM(playerid, color_gray, AdminOnly);
        
    new userID, reason[32], string[128];
    if(sscanf(params, "us[32]", userID, reason))
        return SCM(playerid, color_gray, "Folosire: /kick <player> <reason>");
    
    format(string, sizeof(string), "{E93623}({FFFFFF}AdmBot{E93623}){E93623}: Jucatorul %s a primit kick de la adminul %s, reason: %s",GetName(userID), GetName(playerid), reason);
    SendClientMessageToAll(color_red, string);
    Kick(userID);
    
    return 1;
}

Edited by KB.HERO

 Încearcă să fii un om de valoare și nu neapărat un om de succes.

 

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.