4en3rgY Romania
samp setskin admin command 2z8bv910
Welcome To 4EN3RGY Romania
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!

4en3rgY Romania


Nu sunteti conectat. Conectați-vă sau înregistrați-vă

samp setskin admin command

Vezi subiectul anterior Vezi subiectul urmator In jos  Mesaj [Pagina 1 din 1]

1samp setskin admin command Empty samp setskin admin command Joi 25 Aug 2011, 11:11

trojan4u[:X]

trojan4u[:X]Administrator

In timp ce cautam cate ceva pentru un server de sa-mp am dat peste acest code care le da voie adminilor sa foloseasca /setskin [id] [skinid]

Acest code il puneti in pawno in gamemode sau faceti un fs cu el:

Cod:
//----------------------------[Set Skin]----------------------------------------
    if(strcmp(cmd, "/setskin", true) == 0)
  {
      if(IsPlayerConnected(playerid))
      {
          if(PlayerInfo[playerid][pAdmin] >= 4)
          {
              new tmp2[256];
              tmp = strtok(cmdtext, idx);
              new otherplayer = strval(tmp);
              tmp2 = strtok(cmdtext, idx);
              new skin = strval(tmp2);
              if(!strlen(tmp))
              {
                  SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setskin [id] [idskin]");
                  return 1;
            }
            if(!strlen(tmp2))
              {
                  SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setskin [id] [idskin]");
                  return 1;
            }
            SetPlayerSkin(otherplayer, skin);
            SendClientMessage(otherplayer, COLOR_YELLOW, "An admin changed your skin.");
            new amsg[256];
              GetPlayerName(playerid, playername, sizeof(playername));
              format(amsg, sizeof(amsg), "%s changed the skin of .", playername);

        }
        else
        {
            SendClientMessage(playerid, COLOR_RED, "You are not admin !");
            return 1;
        }
      }
      return 1;
  }

2samp setskin admin command Empty Re: samp setskin admin command Joi 25 Aug 2011, 11:21

Viorel

ViorelFondator

Bravo

3samp setskin admin command Empty Re: samp setskin admin command Dum 26 Aug 2012, 21:41

m1NN1maL.

m1NN1maL.Membru

🇲🇸

Continut sponsorizat


Vezi subiectul anterior Vezi subiectul urmator Sus  Mesaj [Pagina 1 din 1]

Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum

 

Copyright @ 2010-2024 by 4en3rgY ~> All rights reserved.