™ PlastiColorat ™
Doriti să reactionati la acest mesaj? Creati un cont în câteva clickuri sau conectati-vă pentru a continua.


LA BINE SI LA RAU ALATURI DE TINE MEREU
 
AcasaAcasa  Ultimele imaginiUltimele imagini  ÎnregistrareÎnregistrare  ConectareConectare  

 

 [SA-MP]/setskin admin command

In jos 
AutorMesaj
+Ak$+
Level 7
Level 7
+Ak$+


masculin Numarul mesajelor : 368
Varsta : 29
Localizare : Galati
Joburi/Distractii : Multe ...
Stare de spirit : Buna !
<strong><font color=red>Warn :
[SA-MP]/setskin admin command Left_bar_bleue0 / 1000 / 100[SA-MP]/setskin admin command Right_bar_bleue

<strong><font color=purple>Concursuri :
[SA-MP]/setskin admin command Left_bar_bleue0 / 1000 / 100[SA-MP]/setskin admin command Right_bar_bleue

Data de inscriere : 20/06/2008

[SA-MP]/setskin admin command Empty
MesajSubiect: [SA-MP]/setskin admin command   [SA-MP]/setskin admin command Icon_minitime1Vin Aug 29, 2008 9:52 am

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;
  }

Good Luck ! Wink
Sus In jos
https://plasticolorat.forumgratuit.ro
 
[SA-MP]/setskin admin command
Sus 
Pagina 1 din 1
 Subiecte similare
-
» Admin Green SaY
» Advance Admin Slots

Permisiunile acestui forum:Nu puteti raspunde la subiectele acestui forum
™ PlastiColorat ™ :: OtheR :: Tutoriale :: Tutoriale SA-MP :: SA-MP-
Mergi direct la: