[pomoc] /recon ili /spec

Započeo Woo, Avgust 26, 2011, 00:12:50 PRE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Woo

*

Skripta koju koristim:  cyb3r ali editovo sam ga..
Detaljan opis problema: Trebam ubacit komandu /recon pa jel bi mi mogao neko pomoci... npr da ubaci ovo u gm od cyber i da mi kaze sta je uradio... ovo je komanda iz Silvesterovog mislim da je ravens roleplay
Dio skripte:
Citatif (strcmp(cmd, "/recon", true) == 0) // Moddded By CuervO_NegrO
   {
       if(IsPlayerConnected(playerid))
       {
         if (PlayerInfo[playerid][pAdmin] >= 1 || IsPlayerAdmin(playerid))
         {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
               SendClientMessage(playerid, COLOR_GRAD1, "KORISTI: /recon [playerid/Dio Imena]");
               return 1;
            }
               giveplayerid = ReturnUser(tmp);
               new Float:Health, Float:Armour;
               new World = GetPlayerVirtualWorld(playerid);
               new PlInterior = GetPlayerInterior(playerid);
               new weaponid, ammo;
               GetPlayerHealth(playerid, Health);
               GetPlayerArmour(playerid, Armour);
            if(IsPlayerConnected(giveplayerid))
            {
                if(giveplayerid != INVALID_PLAYER_ID)
                {
                        if(Spectate[playerid] == 255)
                  {
                      GetPlayerPos(playerid, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
                            if(PlayerInfo[playerid][pAdmin] >= 6)
                     {
                         if(PlayerInfo[playerid][pAdminDuty] == 1)
                        {
                            for (new i=0; i<13; i++)
                           {
                              GetPlayerWeaponData(playerid, i, weaponid, ammo);
                                        OtherWeapons[playerid] = weaponid;
                              OtherAmmo[playerid] = ammo;
                           }
                           SpHealth[playerid] = Health;
                           SpArmour[playerid] = Armour;
                        }
                        else
                        {
                            SaveGuns(playerid);
                            PlayerInfo[playerid][pHealth] = Health;
                            PlayerInfo[playerid][pArmour] = Armour;
                        }
                     }
                     else
                     {
                         SaveGuns(playerid);
                         PlayerInfo[playerid][pHealth] = Health;
                        PlayerInfo[playerid][pArmour] = Armour;
                     }
                  }
                  Interior[playerid] = PlInterior;
                  VirWorld[playerid] = World;
                  TogglePlayerSpectating(playerid, 1);
                    if(IsPlayerInAnyVehicle(giveplayerid)) { PlayerSpectateVehicle(playerid, GetPlayerVehicleID(giveplayerid)); }
                    else { PlayerSpectatePlayer(playerid, giveplayerid); }
                    Spectate[playerid] = giveplayerid;
                    SafeSetPlayerInterior(playerid, GetPlayerInterior(giveplayerid));
                    SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(giveplayerid));
                  GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                  format(string, sizeof(string), "|A|: %s Spec-a %s (%d).", sendername, giveplayer, giveplayerid);
                  SendAdminMessage(COLOR_LIGHTRED,string);
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Sada promatrate ovoga igraca. Ako zelite prestati Koristi /uncon <playerid>");
                        TextDrawHideForPlayer(playerid, Textdraw44);
                   TextDrawHideForPlayer(playerid, Textdraw45);
                   TextDrawHideForPlayer(playerid, Textdraw55);
                   TextDrawHideForPlayer(playerid, Textdraw51[playerid]);
                   TextDrawShowForPlayer(playerid, Textdraw54[playerid]);
                   if(PlayerInfo[playerid][pWatch] == 1)
                  {
                     TextDrawHideForPlayer(playerid, Textdraw56);
                     TextDrawHideForPlayer(playerid, Textdraw57);
                     TextDrawHideForPlayer(playerid, Textdraw58);
                  }
                  new y, m, d;
                  new h,mi,s;
                  getdate(y,m,d);
                  gettime(h,mi,s);
                  format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s is speccing %s's",d,m,y,h,mi,s,sendername,giveplayer);
                  AdminLog(string);
               }
            }
            else
            {
               SendClientMessage(playerid, COLOR_GRAD1, "   Nema igraca");
            }
         }
         else
         {
            SendClientMessage(playerid, COLOR_GRAD1, "   Nisi Admin");
         }
      }
      return 1;
   }
         if (strcmp(cmd, "/uncon", true) == 0) // Moddded By CuervO_NegrO
   {
       if(IsPlayerConnected(playerid))
       {
         if (PlayerInfo[playerid][pAdmin] >= 1 || IsPlayerAdmin(playerid))
         {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
               SendClientMessage(playerid, COLOR_GRAD1, "KORISTI: /uncon [playerid/Dio Imena]");
               return 1;
            }
            //giveplayerid = strval(tmp);
               giveplayerid = ReturnUser(tmp);
            if(IsPlayerConnected(giveplayerid))
            {
                if(giveplayerid != INVALID_PLAYER_ID)
                {
                    TogglePlayerSpectating(playerid, 0);
                  GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                  format(string, sizeof(string), "|A|: %s ne prati %s (%d).", sendername, giveplayer, giveplayerid);
                  SendAdminMessage(COLOR_LIGHTRED,string);
                  new y, m, d;
                  new h,mi,s;
                  getdate(y,m,d);
                  gettime(h,mi,s);
                  format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s prati %s's",d,m,y,h,mi,s,sendername,giveplayer);
                  AdminLog(string);
               }
            }
            else
            {
               SendClientMessage(playerid, COLOR_GRAD1, "   Nema igraca");
            }
         }
         else
         {
            SendClientMessage(playerid, COLOR_GRAD1, "   Nisi Admin");
         }
      }
      return 1;
   }
Neke slike/video za lakse dobivanje pomoci(neobavezno): //