World of Metin

Masina personala

View previous topic View next topic Go down

Masina personala

Post by A.Levine on Fri Sep 14, 2012 9:46 am

In acest tutorial veti invata cum sa faceti o masina personala pentru cineva|sau pentru tine

Pasul 1: Deschidem pawno si facem un nou script

Sub #define FILTERSCRIPT
scriem: new masina; *la masina puneti ce nume doriti sau puteti pune numele celui caruia io faceti!

Pasul 2: La OnFilterScriptInit:
1.Mergem in sa-mp debug dam /v [id masina] ex: id 522(nrg-500) apoi dam /save masina player
2.Apoi mergem in My Documents>>Gta San Andreas user Files>>samp>>savedpositions.txt si cautam pozitia salvata
3.Mergem apoi la OnFilterScriptInit si adaugam

Cod:
masina = AddStaticVehicle(522,2137.2576,-1471.1782,23.5312,93.9336,144,1); // asta este doar un ex


Pasul 3: Mergem la OnPlayerStateChange
1. Adaugam:

Code:
  new vehicleid = GetPlayerVehicleID(playerid);
        new pname[MAX_PLAYER_NAME];

        GetPlayerName(playerid, pname, sizeof pname);

        if(newstate == PLAYER_STATE_DRIVER)
        {
            if(vehicleid == masina)
            {
                if(strcmp(pname, "numele player-ului", true) == 0)
                  {
                    return 1;
                }
                else
                {
                            RemovePlayerFromVehicle(playerid);
                }

            }

        }


A.Levine
Administrator
Administrator

Posts : 931
Reputation : 0
Join date : 19/10/2010
Age : 18
Location : Hunedoara

View user profile http://world-of-metin.big-forum.net

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum