Jump to content

Alexica721

Membru
  • Posts

    258
  • Joined

  • Last visited

    Never

Posts posted by Alexica721

  1. Buna Ziua, :D

    Fao pe ZCMD

    Respect gireada k ii pui s-o faca singur.

    In fine comanda

    CMD:gotols(playerid, params[])
    	{
    			if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 2)
    			{
    				if (GetPlayerState(playerid) == 2)
    				{
    					new tmpcar = GetPlayerVehicleID(playerid);
    					SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);
    					TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
    				}
    				else
    				{
    					SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
    				}
    				SendClientMessage(playerid, COLOR_GRAD1, "{30a030}[Infinity]: {ffd700}Ai fost Teleportat cu succes.");
    				SetPlayerInterior(playerid,0);
    				PlayerInfo[playerid][pInt] = 0;
                                    SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
    			}
    			else
    			{
    				SendClientMessage(playerid, COLOR_GRAD1, "{30a030}[Infinity]: {FFFFFF}Ne pare rau, dar nu ai acces la aceasta comanda.");
    			}
    		return 1;
    	}
  2. 1:Pai exista optiunea search CLICK aici

      Cauti tot felul de scripturi.(admin,vip,etc)

      Ca sa inveti cum sa creezi astea incearca sa cauti in sectiunea te tutoriale(http://www.sa-mp.ro/forum/index.php?board=24.0)

      Cauta pe wiki (http://wiki.sa-mp.com/wiki/Category:Scripting_Functions)

      Foloseste un modul de comenzi (iti recomand zcmd:http://forum.sa-mp.com/showthread.php?t=91354 ) si uitate aici cauta niste comenzi(uitate        aici:http://forum.sa-mp.com/showthread.php?t=319000)

      PS:ca sa cauti pe google foloseste asta site:sa-mp.com [numele scriptului](ex. site:sa-mp.com samp admin system)

      2:Filele de tip .amx sunt facute numai pt a fi citite de catre server.Din fisierele pawn se creeaza scripturi.Prin F5 se face tranzitia de la pawn la .amx.Procesul acesta se numeste compilare.Invata functiile apoi apucate de un gamemode.Altfel iti vei umple gamemode-ul de erori.

    Sper ca ti-am fost de ajutor.

     

  3. Buna ziua

    Am revenit cu o problema.

    Azi am facut o parte dintr-un script

    public OnPlayerCommandReceived(playerid, cmdtext[])

    {

        if(inDM[playerid] == 1)

        {

          SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot use commands while in Jail!");

          return 0;

        }

          return 1;

    }

    el nu ma lasa sa folosesc comenzi in dm.Dar as vrea sa ma lase sa folosesc comanda /exitdm . cum fac?

  4. eu tot as vrea sa-l incerc

    dar cand incerc sal compilez imi da erarea asta

    error 025: function heading differs from prototype

    la linia

    [pawn]public GPS_WhenRouteIsCalculated(routeid,node_id_array[],amount_of_nodes,distance)[/pawn]

  5. Buna Ziua sa-mp.ro

    Am o problema cu acest sistem de gps.

    http://forum.sa-mp.com/showthread.php?t=298001

    Am instalat plugin-urile si fs-ul  si nu merg comenzile.

    am pus numele fs-ului si pluginurile in server cfg.

  6. Buna ziua astazi am o commanda

    [pawn]CMD:skill( playerid , params [ ] )

    {

        if ( sscanf ( params , "i" , params [ 0 ] ) ) return SendClientMessage ( playerid , 0xFFFFFFFF , "USAGE:/skill [1-2]" ) ;

            switch ( params [ 0 ] )

        {

            case 1:    SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 1);

            case 2:    SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 1);

    }

        return ( 1 ) ;

    }[/pawn]

    Intrebarea e daca la case 1 as putea sa pun cumva sa imi seteze skill level-ul si de uzi

    Adik sa am la case 1

    SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 1); si

    SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1);

  7. Bun-Seara

    am o problema la comanda "healall"

    [pawn]

    dcmd_healall(playerid,params[])

    {

        #pragma unused params

    if(AccInfo[playerid][Level] >= 3)

    {

    SendCommandToAdmins(playerid,"HealAll");

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

    {

    if(IsPlayerConnected(i) && (i != playerid) && i != ServerInfo[MaxAdminLevel])

    {

    PlayerPlaySound(i,1057,0.0,0.0,0.0); SetPlayerHealth(i,100.0);

    }

    }

    new string[128];

    format(string,sizeof(string),"|- Administrator \"%s\" has Healed all players -|", pName(playerid));

    return SendClientMessageToAll(blue, string);

    }

    else return ErrorMessages(playerid, 6);

    }

    [/pawn]

    Arata doar k Adminul cutare a dat viata tuturor.

    Problema o intampin si la celalalte comenzi (spawnall,armourall,etc..)

  8. Anakin" post="139916" timestamp="1366043315"]

    SetPlayerWorldBounds(playerid, 20000.0000,-20000.0000,20000.0000,-20000.0000);

    OnPlayerSpawn adauga ...

    am incercat ceva de genu asta la darky dar nu e bine

    cred ca imi trebe sa adaug addplayerclass

    gata ms darky

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