Jump to content

/makeleader


Recommended Posts

Am si eu o comanda /makeleader si am incerc sa fac cand tastez sa imi apara id-ul factiuni si factiunile sa stii ce sa setezi la player si nu apare deloc

 

CMD:makeleader(playerid, params[])
{
    if(pInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, COLOR_DARKGRAY, "You are not authorized to use that command.");
    new giveplayerid, level;
    if(sscanf(params, "ud", giveplayerid, level)) return SendClientMessage(playerid, 0x8EC7DCFF, "Syntax: {FFFFFF}/makeleader [playerid/name] [faction ID]");
    SendClientMessage(playerid, 0x8EC7DCFF, "1.LS Police Departament || 2.F.B.I || 3.National Guard || 4.Paramedics Departament LS || 5.Taxi LS || 6.News Reporters || 7.School Instructor LS || 8.Hitman Agency || 9.Grove Street || 10.The Ballas Family");
    SendClientMessage(playerid, 0x8EC7DCFF, "11.La Cosa Nostra || 12.Yakuza || 13.The Mayor || 14.Insomnia Racing Club || 15.Midnight Racers Club || 16.Taxi LV || 17.School Instructor LV || 18.Paramedics Departament LV || 19.LV Police Departament");
    if(giveplayerid == INVALID_PLAYER_ID || pInfo[giveplayerid][pStatus] != 1) return SendClientMessage(playerid, COLOR_DARKGRAY, "Player not connected.");
    if(pInfo[giveplayerid][pMember] > 0 && pInfo[giveplayerid][pRank] != 10) return SendClientMessage(playerid, COLOR_DARKGRAY, "Jucatorul este deja intr-o factiune ca membru. (/auninvite)");
    if(pInfo[giveplayerid][pMember] == 0 && level == 0) return SendClientMessage(playerid, COLOR_DARKGRAY, "Jucatorul este deja civil.");
    if(ac28[giveplayerid] == 0)

HostName: BlueMax RPG Official + Alegem STAFF 16:00
Address:  193.203.39.134:7777
Players:  ++ / 75
Ping:     15
Mode:     bluemax v1
Language: RO / EN

 

Link to comment
Share on other sites

CMD:makeleader(playerid, params[])
{
    if(pInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, COLOR_DARKGRAY, "You are not authorized to use that command.");
    new giveplayerid, level;
    if(sscanf(params, "ud", giveplayerid, level)) 
    {
        SendClientMessage(playerid, 0x8EC7DCFF, "Syntax: {FFFFFF}/makeleader [playerid/name] [faction ID]");
        SendClientMessage(playerid, 0x8EC7DCFF, "1.LS Police Departament || 2.F.B.I || 3.National Guard || 4.Paramedics Departament LS || 5.Taxi LS || 6.News Reporters || 7.School Instructor LS || 8.Hitman Agency || 9.Grove Street || 10.The Ballas Family");
         SendClientMessage(playerid, 0x8EC7DCFF, "11.La Cosa Nostra || 12.Yakuza || 13.The Mayor || 14.Insomnia Racing Club || 15.Midnight Racers Club || 16.Taxi LV || 17.School Instructor LV || 18.Paramedics Departament LV || 19.LV Police Departament");
    } 
    if(giveplayerid == INVALID_PLAYER_ID || pInfo[giveplayerid][pStatus] != 1) return SendClientMessage(playerid, COLOR_DARKGRAY, "Player not connected.");
    if(pInfo[giveplayerid][pMember] > 0 && pInfo[giveplayerid][pRank] != 10) return SendClientMessage(playerid, COLOR_DARKGRAY, "Jucatorul este deja intr-o factiune ca membru. (/auninvite)");
    if(pInfo[giveplayerid][pMember] == 0 && level == 0) return SendClientMessage(playerid, COLOR_DARKGRAY, "Jucatorul este deja civil.");
    if(ac28[giveplayerid] == 0)

 

  • Upvote 1
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.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.