Jump to content

star69

Membru
  • Posts

    55
  • Joined

  • Last visited

Posts posted by star69

  1. #define     MAX_BUSINESS        (100)
    #define     MAX_BUSINESS_NAME	(32)    // maximum length of a business's name (default: 32)
    #define     BUSINESS_INTERVAL   (30)    // give money to businesses every x minutes, also saves businesses (default: 30)
    #define     BUSINESS_DAYS  		(7)     // if a business's owner doesn't visit their business after x days, it will get reset (default: 7)
    #define     LIMIT_PER_PLAYER    (3)     // a player can buy up to x businesses - you can set this to 0 if you want it unlimited (default: 3)
    #define     INVALID_BUSINESS    (-1)
    
    enum    e_businessdialogs
    {
    	DIALOG_BUY_BUSINESS = 21500,
    	DIALOG_BUY_BUSINESS_FROM_OWNER,
    	DIALOG_MANAGE_BUSINESS,
    	DIALOG_MANAGE_BUSINESS_NAME,
    	DIALOG_MANAGE_BUSINESS_SAFE,
    	DIALOG_MANAGE_DEPOSIT_TO_SAFE,
    	DIALOG_MANAGE_TAKE_FROM_SAFE,
    	DIALOG_MANAGE_SELL,
    	DIALOG_MANAGE_SELL_TO_PLAYERS,
    	DIALOG_MANAGE_PERMISSIONS,
    	DIALOG_MANAGE_GIVE_PERM_NAME,
    	DIALOG_MANAGE_GIVE_PERM_DEPOSIT,
        DIALOG_MANAGE_GIVE_PERM_TAKE,
        DIALOG_MANAGE_LIST_PERMS,
        DIALOG_MANAGE_EDIT_PERMS,
        DIALOG_MANAGE_SAFE_LOGS,
    	DIALOG_ADMIN_BUSINESS_TYPE
    }
    
    enum    e_businessperms
    {
     	PERM_CAN_USE_SAFE,
    	PERM_CAN_DEPOSIT,
    	PERM_CAN_TAKE
    }
    
    enum    e_business
    {
    	// saved
    	bName[MAX_BUSINESS_NAME],
    	Owner[MAX_PLAYER_NAME],
    	Float: BusinessX,
    	Float: BusinessY,
    	Float: BusinessZ,
    	Closed,
    	Price,
    	SalePrice,
    	Earning,
    	Money,
    	Type,
    	LastVisited,
    	// not saved
    	Text3D: BusinessLabel,
    	BusinessPickup,
    	bool: Save
    }
    
    enum    e_businessint
    {
    	InteriorName[32],
    	Float: InteriorX,
    	Float: InteriorY,
    	Float: InteriorZ,
    	InteriorID,
    	ExitPickup,
    	Text3D: ExitLabel
    };
    
    new
    	BusinessData[MAX_BUSINESS][e_business],
    	Iterator: Business<MAX_BUSINESS>;
    
    new
    	InBusiness[MAX_PLAYERS] = {INVALID_BUSINESS, ...};
    
    new
    	BusinessStates[2][16] = {"{2ECC71}Deschis", "{E74C3C}Inchis"},
    	PermissionStates[2][16] = {"{E74C3C}Nu", "{2ECC71}Da"};
    
    new
    	BusinessInteriors[][e_businessint] = {
    		{"24/7 1", -25.884498, -185.868988, 1003.546875, 17},
    		{"24/7 2", 6.091179, -29.271898, 1003.549438, 10},
    		{"24/7 3", -30.946699, -89.609596, 1003.546875, 18},
    		{"24/7 4", -25.132598, -139.066986, 1003.546875, 16},
    		{"24/7 5", -27.312299, -29.277599, 1003.557250, 4},
    		{"24/7 6", -26.691598, -55.714897, 1003.546875, 6},
    		{"Ammunation 1", 286.148986, -40.644397, 1001.515625, 1},
    		{"Ammunation 2", 286.800994, -82.547599, 1001.515625, 4},
    		{"Ammunation 3", 296.919982, -108.071998, 1001.515625, 6},
    		{"Ammunation 4", 314.820983, -141.431991, 999.601562, 7},
    		{"Ammunation 5", 316.524993, -167.706985, 999.593750, 6},
    		{"Sex Shop", -103.559165, -24.225606, 1000.718750, 3},
    		{"Binco", 207.737991, -109.019996, 1005.132812, 15},
    		{"Didier Sachs", 204.332992, -166.694992, 1000.523437, 14},
    		{"ProLaps", 207.054992, -138.804992, 1003.507812, 3},
    		{"Sub Urban", 203.777999, -48.492397, 1001.804687, 1},
    		{"Victim", 226.293991, -7.431529, 1002.210937, 5},
    		{"Zip", 161.391006, -93.159156, 1001.804687, 18},
    		{"Alhambra", 493.390991, -22.722799, 1000.679687, 17},
    		{"Bar", 501.980987, -69.150199, 998.757812, 11},
    		{"Burger Shot", 375.962463, -65.816848, 1001.507812, 10},
    		{"Cluckin' Bell", 369.579528, -4.487294, 1001.858886, 9},
    		{"Well Stacked Pizza", 373.825653, -117.270904, 1001.499511, 5},
    		{"Strip Club", 1204.809936, -11.586799, 1000.921875, 2},
    		{"Pleasure Domes", -2640.762939, 1406.682006, 906.460937, 3},
    		{"Barber 1", 411.625976, -21.433298, 1001.804687, 2},
    		{"Barber 2", 418.652984, -82.639793, 1001.804687, 3},
    		{"Barber 3", 412.021972, -52.649898, 1001.898437, 12},
    		{"Tatoo Parlour", -204.439987, -26.453998, 1002.273437, 16}
    	};

    Am acest sistem de afaceri

    Vreau ca comanda /cumpara sa functioneze doar daca sunt in primele 6 tipuri de afaceri

    Ma poate ajuta cineva?

  2. forward FireLocLV();
    public FireLocLV()
    {
    
    	/*CallRemoteFuntion("*/CreateFire(/*", "fff", */693.69, 1966.36, 5.53);
    	/*CallRemoteFuntion("*/CreateFire(/*", "fff", */698.24, 1949.53, 5.53);
    	/*CallRemoteFuntion("*/CreateFire(/*", "fff", */715.44, 1971.25, 9.56);
    	/*CallRemoteFuntion("*/CreateFire(/*", "fff", */684.42, 1970.22, 9.29);
    	/*CallRemoteFuntion("*/CreateFire(/*", "fff", */685.54, 1967.23, 5.53);
    
    }
    
    forward FireLocBandits();
    public FireLocBandits()
    {
    
    	/*CallRemoteFuntion("*/CreateFire(/*", "fff", */1485.84, 2232.04, 11.8);
    	/*CallRemoteFuntion("*/CreateFire(/*", "fff", */1488.16, 2208.43, 11.23);
    	/*CallRemoteFuntion("*/CreateFire(/*", "fff", */1481.18, 2149.20, 11.02);
    	/*CallRemoteFuntion("*/CreateFire(/*", "fff", */1483.65, 2244.61, 11.02);
    	/*CallRemoteFuntion("*/CreateFire(/*", "fff", */1492.48, 2134.33, 10.82);
    
    }
    
    new RandomFireLoc[][] =
    {
    	"FireLocLV", // ID = 1
    	"FireLocBandits" // ID = 2
    
    
    };
    
    forward StartFire();
    public StartFire()
    {
    
        new randFire = random(sizeof(RandomFireLoc));
        //CreateFire(/*", "fff", */randFire);
        randFire();
    
    }
    
    

     

    error 012: invalid function call, not a valid address
    error 029: invalid expression, assumed zero
    linia randFire(); e cu problema
     
    Ce pot sa fac?
     
    vreau ca in
    forward StartFire();
    public StartFire()
    {
    
    
    
    }

    sa fie

    random 

    FireLocBandits(); sau FireLocLv();
     

     

     

  3. Am nevoie de un script

    Cand intru intr-un cp si  tin apasat pe KEY_FIRE sa inceapa o numaratoare de la 60 spre 0

    daca nu mai tin apasat sa se blocheze sau sa dispara si cand tin apasat din nou pe KEY_FIRE sa revina la numarul la care am ramas

    De exemplu daca am tinut 10 secunde si tin din nou sa inceapa de la 50

    si la final sa-mi trimita un text 

  4. 1 hour ago, Mister said:

    Înlocuiesti getplayerpos cu.  

    
    GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance)
    {
    	new Float:a;
    	GetPlayerPos(playerid, x, y, a);
    	GetPlayerFacingAngle(playerid, a);
    	if (GetPlayerVehicleID(playerid))
    	{
    	  GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
    	}
    	x += (distance * floatsin(-a, degrees));
    	y += (distance * floatcos(-a, degrees));
    }

    Și adăugă funcția asta la finalul gmului 

     

    A functionat, se creeaza in spate

    Cum pot face distanta mai mare sa fie mai in spate?

  5. Am inteles.

    Multumesc!

    Ma mai poti ajuta cu ceva?

                    DisablePlayerCheckpoint(playerid);
                    PlayerPlaySound(playerid,1136,0.0,0.0,0.0);
                    SetPlayerCheckpoint(playerid,-34.9588,-69.0512,3.1172, 10);
                    DestroyObject(Planta1);
                    
                    new Float:X, Float:Y, Float:Z, Float:A;
            	GetPlayerPos(playerid, X, Y, Z);
            	GetPlayerFacingAngle(playerid, A);
            	Balot1 = CreateObject(1454, X, Y, Z-1.3, 0.0, 0.0, A);

    Am dupa ce dispare planta1 sa apara objectul balot1 chestia e ca se creeaza exat unde e combina mea, vreau sa fie mai in spate

     

    Am incercat sa pun la Y -1.5 a functionat, dar daca vin din partea opusa se creeaza in fata mea

     

    Ai idee ce pot sa fac? sa se creeze intodeauna in spatele masinii ?

  6. Incerc sa fac un job nou
     
    Cand intru in CP se creeaza un object in pozitia mea 
     

    Quote

    if (APlayerData[playerid][JobStep] == 1)

    {
       
         if(IsPlayerInRangeOfPoint(playerid, 10, -46.6383,-108.1212,3.1172))
             {
                 new Float:X, Float:Y, Float:Z, Float:A;
                 DisablePlayerCheckpoint(playerid);
                    PlayerPlaySound(playerid,1136,0.0,0.0,0.0);
                 GetPlayerPos(playerid, X, Y, Z);
                 GetPlayerFacingAngle(playerid, A);
                 Planta1 = CreateObject(813,  X, Y, Z-1.0, A);
             }
    if (APlayerData[playerid][JobStep] == 2)
    {
    if(IsPlayerInRangeOfPoint(playerid, 10, -46.6383,-108.1212,3.1172))
    {
    DisablePlayerCheckpoint(playerid);
    PlayerPlaySound(playerid,1136,0.0,0.0,0.0);
    SetPlayerCheckpoint(playerid,-34.9588,-69.0512,3.1172, 10);
    DestroyObject(Planta1);
    }

    Cum pot face la JobStep == 2 sa fie if(IsPlayerInRangeOfPoint(playerid, locatia la Planta1 ?

  7. Salut!

    Am adaugat un sistem de masini personale in gamemode

    imi da acest warning:

     

    (576) : warning 219: local variable "rows" shadows a variable at a preceding level

    la linia 576 este :

    new rows = cache_num_rows(handle), count = 0, tempString[16];
    public OnPlayerLoadVehicles(playerid)
    {
    	new rows = cache_num_rows(handle), count = 0, tempString[16];
    	if(rows > 0)
    	{
    		new tempInt;
    		for(new z = 0; z < rows; z++)
    		{
    			for(new i = 0; i < MAX_VEH; i++)
    			{
    				if(Vehicles[i][vehStatus]) continue;
    
    				Vehicles[i][vehStatus]		= true;
    				Vehicles[i][vehID]			= cache_get_field_content_int(z, "id");
    				Vehicles[i][vehModel]		= cache_get_field_content_int(z, "model");
    				cache_get_field_content(z, "owner", tempString);
    				format(Vehicles[i][vehOwner], MAX_PLAYER_NAME, "%s", tempString);
    				Vehicles[i][vehPos][0]		= cache_get_field_content_float(z, "posX");
    				Vehicles[i][vehPos][1]		= cache_get_field_content_float(z, "posY");
    				Vehicles[i][vehPos][2]		= cache_get_field_content_float(z, "posZ");
    				Vehicles[i][vehPos][3]		= cache_get_field_content_float(z, "posA");
    				Vehicles[i][vehColor][0]	= cache_get_field_content_int(z, "color1");
    				Vehicles[i][vehColor][1]	= cache_get_field_content_int(z, "color2");
    				Vehicles[i][vehInt]			= cache_get_field_content_int(z, "int");
    				Vehicles[i][vehVW]			= cache_get_field_content_int(z, "vw");
    				new a = 1;
    				for(new w = 0; w < 14; w++)
    				{
    					format(tempString, sizeof(tempString), "mod%d", a);
    					Vehicles[i][vehMods][w] = cache_get_field_content_int(z, tempString);
    					a++;
    				}
    				tempInt	= cache_get_field_content_int(z, "locked");
    				if(tempInt == 1)
    					Vehicles[i][vehLock]		= true;
    				else
    					Vehicles[i][vehLock]		= false;
    				tempInt	= cache_get_field_content_int(z, "alarm");
    				if(tempInt == 1)
    					Vehicles[i][vehAlarm]		= true;
    				else
    					Vehicles[i][vehAlarm]		= false;
    				cache_get_field_content(z, "plate", tempString);
    				format(Vehicles[i][vehPlate], 16, "%s", tempString);
    				createVehicle(i);
    				count++;
    				break;
    			}
    		}
    	}
    	printf("Loaded %d vehicles from %s", count, GetName(playerid));
    	return 1;
    }

     

    Ma poate ajuta cineva?

  8. 11 hours ago, EquiNox said:

    Adresa aia de skype este compromisa , probabil a uitat sa o editeze , dar nu uita ca el i-a specificat sa-l contacteze pe yahoo. Cel putin 3 persoane au acces la adresa lui de skype.

    si eu de unde sa stiu ma frate ca au toti copiii parola lui de skype in descriere scria clar ca scripteaza si adresa de skype. am vazut ca e moderator si am spus sa am incredere in el

  9. Ce dracu ma frate nu te mai scuza! Recunoaste ca esti un tepar! Cum dracu sa pui la descriere adresa de skype alcuiva?

     

    Eu am vazut clar adresa ta de skype si mesajul   "Scriptez contra-cost." 

    Apoi ti-ai editat si descirerea sa scapi basma curata.

     

    Ce om normal  si`ar da parola  adresei de skype alcuiva? 

    Tu dai tepe zilnic si dai vina pe fratele tau si pe altii ?

    Fi baiat si da banii inapoi sau fa gm-ul cum trebuie!

  10. asa e el ma a scris 4 linii si s-a plictisit.. s-a vazut cu banii in cont

    11 hours ago, EquiNox said:

    Adrian , il stiu de mult timp , am colaborat cu el cu multe , i-am facut si script-uri , m-a ajutat si el pe ici pe colo , unele au fost contra-cost altele nu , ideea este urmatoarea. Nu ii sta in caracter sa dea teapa , plus , are un gard pe aceasta comunitate , iar asta te impiedica , crezi ca si-ar risca gradu` pentru 20 euro? Daca tu nu tu ti-ai luat masuri de precautie pentru ai afla identitatea (daca este el sau nu) , atunci este problema ta. Iar fratisu` are acces la toate conturile lui pe PC , pentru ca folosesc am-2 acelasi PC , nu este logic? 

    Ce masuri frate?

    Avea in descriere acel skype.. ce dracu...

    Am vazut ca e si moderator pe acest forum am spus ca nu e tepar, m-am inselat

    Daca e baiat, sa dea banii inapoi sau sa-si termine sarcina

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