Jump to content

nErVi

Membru
  • Posts

    60
  • Joined

  • Last visited

    Never

Posts posted by nErVi

  1. Va dau 2 comenzi care fac acelasi lucru numai ca nu automat
    
    new gSpectateID[MAX_PLAYERS];
    new gSpectateType[MAX_PLAYERS];
    
    //-----------------------------------------------[afk]---------------------------------------------------------
    	if(strcmp(cmd, "/afk", true) == 0)
    	{
    		if (PlayerInfo[playerid][pAdmin] >= 1)
    		{
    		    if(IsPlayerConnected(playerid))
    		    {
    				tmp = strtok(cmdtext, idx);
    				if(!strlen(tmp)) {
    				SendClientMessage(playerid, COLOR_WHITE, "USAGE: /afk [playerid]");
    				return 1;
    			    }
    			    specplayerid = strval(tmp);
    			    if(!IsPlayerConnected(specplayerid)) {
    			    SendClientMessage(playerid, COLOR_RED, "SpectatePlayer: That player isn't active.");
    				return 1;
    			    }
    				tmp = strtok(cmdtext, idx);
    				if (PlayerInfo[playerid][pAdmin] >= 1)
    				{
    	 			TogglePlayerSpectating(playerid, 1);
    				PlayerSpectatePlayer(playerid, specplayerid);
    				SetPlayerInterior(playerid,GetPlayerInterior(specplayerid));
    				gSpectateID[playerid] = specplayerid;
    				gSpectateType[playerid] = ADMIN_SPEC_TYPE_PLAYER;
    
    	 		    return 1;
    				}
    				else
    				{
    					SendClientMessage(playerid, COLOR_GRAD1, "   Nu esti autorizat pentru a folosi aceasta comanda!");
    				}
    			}
    		}
    	    return 1;
    	}
    			// STOP afk
     	    if(strcmp(cmd, "/afkoff", true) == 0) {
    		TogglePlayerSpectating(playerid, 0);
    		gSpectateID[playerid] = INVALID_PLAYER_ID;
    		gSpectateType[playerid] = ADMIN_SPEC_TYPE_NONE;
    		return 1;
    	}
    
    Sper ca n-am uitat nik sau nam gresti pe undeva
    

  2. M-am apucat sa scriptez un gm Role Play si sa las god father in urma

    Dar am dat din prima peste o eroare :

      RolePlay.pwn(15) : fatal error 100: cannot read from file: "a_zones"

    mia zis cineva ca artrebui sa caut ''includul a_zone.ini'' da nu l-am gasit daca ma puteti ajuta cu el

  3. Buna seara in primul rand am si eu 3 intrebari pentur voi

    1.La fiecare respawn al jucatorilor imi scade 150$ sau de cate ori moare singur etc..

    2.Comanda /aod nu inteleg dc nu apare pe mapa adminu cand o foloseste :

     

    if(strcmp(cmd, "/aod", true) == 0)

        {

          if (PlayerInfo[playerid][pAdmin] >= 1338)

          {

              if(AdminDuty[playerid] == 1)

              {

                          GetPlayerName(playerid, sendername, sizeof(sendername));

                        format(string, sizeof(string), "[Admin Info] %s [iD:%d] is no longer on duty as an admin.", sendername,playerid);

                          SendClientMessageToAll(COLOR_DBLUE,string);

                          AdminDuty[playerid] = 0;

                      SetPlayerHealth(playerid,100);

                      SetPlayerArmour(playerid,0);

                      SetPlayerToTeamColor(playerid);

              }

              else

              {

                    GetPlayerName(playerid, sendername, sizeof(sendername));

                format(string, sizeof(string), "[Admin Info] %s [iD:%d] is now on duty as an admin.Please /w him if you need help.",sendername,playerid);

                SendClientMessageToAll(0xFAAFBEFF,string);

                AdminDuty[playerid] = 1;

                SetPlayerHealth(playerid,99999);

                SetPlayerArmour(playerid,99999);

                SetPlayerColor(playerid,0xFAAFBEFF);

                for(new i = 0; i < MAX_PLAYERS; i ++)

                      {

                        if(IsPlayerConnected(i))

                        {

                        SetPlayerMarkerForPlayer( i,playerid,0xFAAFBEFF );

                      }

                      }

              }

          }

          else

          {

            SendClientMessage(playerid,COLOR_GREY,"Nu esti admin !");

          }

          return 1;

      }

    3. Ar fi dc nu primeste armura de la bodyguard :Aceasta e comanda

    if(strcmp(cmd, "/guard", true) == 0)

    {

        if(IsPlayerConnected(playerid))

        {

        if(PlayerInfo[playerid][pJob] != 8)

        {

    SendClientMessage(playerid, COLOR_GREY, "  You are not a Bodyguard!");

    return 1;

        }

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /guard [playerid/PartOfName] [price]");

    return 1;

    }

    new money;

    giveplayerid = ReturnUser(tmp);

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp)) { return 1; }

    money = strval(tmp);

    if(money < 1 || money > 99999) { SendClientMessage(playerid, COLOR_GREY, "  Price not lower then 1, or above 99999!"); return 1; }

    if(IsPlayerConnected(giveplayerid))

    {

        if(giveplayerid != INVALID_PLAYER_ID)

        {

            if(ProxDetectorS(8.0, playerid, giveplayerid))

    {

        if(giveplayerid == playerid)

        {

            SendClientMessage(playerid, COLOR_GREY, "  Cant offer protection to yourself !");

            return 1;

        }

        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

    GetPlayerName(playerid, sendername, sizeof(sendername));

        format(string, sizeof(string), "* You offerd protection to %s for $%d.", giveplayer, money);

    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

    format(string, sizeof(string), "* Bodyguard %s wants to protect you for $%d, (type /accept bodyguard) to accept.", sendername, money);

    SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);

    GuardOffer[giveplayerid] = playerid;

    GuardPrice[giveplayerid] = money;

    }

    else

    {

        SendClientMessage(playerid, COLOR_GREY, "  That player is not near you !");

    }

    }

    }

    else

    {

        SendClientMessage(playerid, COLOR_GREY, "  That player is offline!");

    }

    }

    return 1;

    }

    Sper sa ma ajutati si pe mine :)THX

  4. As mai avea si eu o problema cercurile acelea galbene carete ajuta sa intri si sa iesi din cladiri fara a maiscrie /enter sau /exit

    Cum le scoti stiu ca a mai exlicat cineva o data da nu am gasit

    Sper ca ati intles la cema refer daca e revin cu o poza daca nu THX

  5. Sal am si eu o problema la sv seravru e factu mai de mult

    Acum nu ma mai pot conecta la el am inteles ca sauschimbat versiunile de multi player si ca nu mai corespund cu sv vechi

    Daca imi poate spune cineva ce si unde sa modific ca sa pot intra pe sv ??? pls

    :)

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