Jump to content

MoroJr

Membru
  • Posts

    37
  • Joined

  • Last visited

    Never

Posts posted by MoroJr

  1. Serveru ruleaza fara gamemod adica fara totalitatea de linii facute in pawno?

    :)))

    Pentru cultura ta, .amxx este codul masina, atunci cand tu, din codul sursa ( .pwn ), compilezi, scriptul este transformat in cod masina, pe care doar CPU-ul o intelege. Pentru a te lamuri, pune in server.cfg, la gamemode, scrie NULL, salveaza, si ruleaza samp-server. Iti va scrie ceva si se va inchide. Intra in server.log, si citeste ce iti scrie acolo ( daca nu intelegi, foloseste google.ro/translate_t )

    Daca vreau sa modific ceva din serveru ala nu am cum??

    - atata timp cat nu ai fisierul sursa ( .pwn ), nu poti modifica.

  2. Uita-te putini la parametri, cati parametri are functia, si cati chemi tu:

    SendClientMessageToAllLang(color, langeng[], langpl[], define1[]="", str=0,str2=0, define2[]="", define3[]="", define4[]="",str3=0)
    1. color 2. langeng[] 3. langpl[] 4. * define1[] 5. * str 6. * str2 7. * define2[] 8. * define3[] 9. * define4[] 10. * str3 * - optional
    new string[128];
    format(string, sizeof(string),">> \"%d\" seconds till \"%s\" named race starts! Type \"/joinrace\" to join the race.",">> Mancano \"%d\" all'inizio della gara \"%s\"! Scrivi \"/joinrace\" per partecipare alla gara.", CountAmount, RaceName);//,">> Mancano \"%d\" all'inizio della gara \"%s\"! Scrivi \"/joinrace\" per partecipare alla gara."
    SendClientMessageToAllLang(GREEN, string);//3978 
    Tu chemi doar primii 2 parametri: color si langeg ... trebuie chemat si langpl, eventual si optionalele ( nu trebuie neaparat ) revin cu un edit sa-ti arat cum se face
    new string[2][128];
    format(string[0], 128,">> \"%d\" seconds till \"%s\" named race starts! Type \"/joinrace\" to join the race.");
    format(string[1], 128,">> Mancano \"%d\" all'inizio della gara \"%s\"! Scrivi \"/joinrace\" per partecipare alla gara.");
    SendClientMessageToAllLang(GREEN, string[0], string[1], "", CountAmount, RaceName);

  3. =-" post="48192" timestamp="1292403586"]

    Copileaza-l cu Pawno din 0.3b sau 0.3c

    Iei de pe http://sa-mp.com, 0.3b, sau de pe http://forum.sa-mp.com/showthread.php?t=194031, iei 0.3c, intri in pawno folder, rulezi executabilul pawncc.exe, intri in pawno.exe, dai Open ( sus stanga ), iti selectezi sursa => F5 - Compile

  4. ai doua posibilitati:

    1. - Folosind functiile din 0.3C: GetVehicleParamsEx, SetVehicleParamsEx

        else if(CP[playerid] == 85)
        {
            new bool:ok = false;
            for(new i = 285; i <= 288; i++) if(IsPlayerInVehicle(playerid, i)) ok = true;
            if(ok)
          	{
    	        new cashp = PlayerInfo[playerid][pLevel] * 100;
    	        format(string, sizeof(string), "~g~%d$ ~w~au fost adaugati.",cashp);
    	        GameTextForPlayer(playerid, string, 1000, 1);
    	        DisablePlayerCheckpoint(playerid);
    	        GivePlayerMoney(playerid, cashp);
    	        CP[playerid] = 86;
    	        SetPlayerCheckpoint(playerid,1340.8556,-1235.6326,12.9889,5.0);
    	        FreezeMyVehicle(/*playerid,*/GetPlayerVehicleID(playerid));
    	}
        }
       
    FreezeMyVehicle(/*playerid,*/vehicleid)
    {
        new engine, lights, alarm, doors, bonnet, boot, objective;
        GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
        SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
        SetTimerEx("UnfreezeMyVehicle",3000,false,"d",vehicleid);
        //SendClientMessage(playerid,0,"{F6F2B9}Te rugam sa astepti {F07F63}3 secunde {F6F2B9}!");
    }
    
    forward UnfreezeMyVehicle(/*playerid,*/vehicleid);
    public UnfreezeMyVehicle(/*playerid,*/vehicleid)
    {
        new engine, lights, alarm, doors, bonnet, boot, objective;
        GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
        SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
        //SendClientMessage(playerid,0,"{F07F63}Totul e in regula, poti pleca !");
    }
    2. - Folosind legendara functie, TogglePlayerControllable
        else if(CP[playerid] == 85)
        {
            new bool:ok = false;
            for(new i = 285; i <= 288; i++) if(IsPlayerInVehicle(playerid, i)) ok = true;
            if(ok)
          	{
    	        new cashp = PlayerInfo[playerid][pLevel] * 100;
    	        format(string, sizeof(string), "~g~%d$ ~w~au fost adaugati.",cashp);
    	        GameTextForPlayer(playerid, string, 1000, 1);
    	        DisablePlayerCheckpoint(playerid);
    	        GivePlayerMoney(playerid, cashp);
    	        CP[playerid] = 86;
    	        SetPlayerCheckpoint(playerid,1340.8556,-1235.6326,12.9889,5.0);
    	        TogglePlayerControllable(playerid, false);
    	        SetTimerEx("TPG_T",3000,false,"d",playerid);
    	        //SendClientMessage(playerid,0,"{F6F2B9}Te rugam sa astepti {F07F63}3 secunde {F6F2B9}!"); /* daca ai 0.3C */
    	}
        }
    
    forward TPG_T(playerid);
    public TPG_T(playerid)
    {
    	if(!IsPlayerConnected(playerid))
    	    return 0;
    
    	TogglePlayerControllable(playerid, true);
    	//SendClientMessage(playerid,0,"{F07F63}Totul e in regula, poti pleca !");  /* daca ai 0.3C */
    }

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