Jump to content
  • 0

Bug dialog /buycar


Liviut

Question

11 answers to this question

Recommended Posts

  • 0
14 hours ago, nuamasacv said:

cum ai facut sa apara alea jos? tick-urile alea alea?

Admin hud. Uite aici un admin hud, poate te ajuta.

new Text:AdminHUD;
if(PlayerInfo[i][pAdmin] >= 1)
			{
				new reports=0,cheaters=0;
				foreach(new id : Player)
				{
					if(strcmp(reporttext[id], "NULL", true) && reportcheater[id] == -1)
					{
						reports++;
					}
					if(reportcheater[id] != -1)
					{
						cheaters++;
					}
				}
				TextDrawShowForPlayer(i, AdminHUD);
				format(string, sizeof(string), "Tick: ~b~%d~w~ / Reports: ~r~%d~w~ / Cheaters: ~r~%d~w~ / FPS: ~g~%d~w~ / Ping: ~r~%d~w~ / Anim: ~y~%d~w~", GetServerTickRate(), reports, cheaters, PlayerInfo[i][pFPS], GetPlayerPing(i), GetPlayerAnimationIndex(i));
				TextDrawSetString(AdminHUD, string);
			}
	AdminHUD = TextDrawCreate(3.000000, 434.875000, "Tick: ~g~200~w~ / Reports: ~r~10~w~ / Cheaters: ~r~10~w~ / FPS: ~g~101~w~ / Ping: ~r~50~w~ 	Anim: ~y~100~w~ / MPS: ~p~20");
	TextDrawLetterSize(AdminHUD, 0.246000, 1.289374);
	TextDrawAlignment(AdminHUD, 1);
	TextDrawColor(AdminHUD, -1);
	TextDrawSetShadow(AdminHUD, 0);
	TextDrawSetOutline(AdminHUD, 1);
	TextDrawBackgroundColor(AdminHUD, 255);
	TextDrawFont(AdminHUD, 2);
	TextDrawSetProportional(AdminHUD, 1);

De adaugat in gm te descurci ca esti mare ;)

 

Edited by razvanduciuc

Ai nevoie de ajutor in scripting si nu ai bani? Te pot ajuta cu mare drag. Dar asta nu inseamna sa iti lucrez un Sistem de joc complet, daca ai nevoie de ajutor ma poti contacta pe Discord.ezgif-2-3a38433e2465.gif.9283810e304f5e405309769455e5e14b.gif

Link to comment
Share on other sites

  • 0

Ai deja 2 masini fara premium.... Daca nu ai cumparat vre-o masina pana acum.

Uite aici o comanda : 

CMD:buycar(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
    if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid,COLOR_GREY,"You need to be on foot.");
    if(IsPlayerInRangeOfPoint(playerid, 7.0, 328.3534,-1513.1687,36.0391))
    {
        if(PlayerInfo[playerid][pLevel] < 3) return SendClientMessage(playerid, COLOR_GREY, "You need level 3 to buy a vehicle.");
        BuyCar[playerid] = -1;
        ShowPlayerDialog(playerid,DIALOG_CARBUY, DIALOG_STYLE_LIST, "Buy a car", "Cheap cars\nRegular cars\nExpensive cars\nPremium cars", "Select", "Close");
    }
    else return SCM(playerid,COLOR_WHITE,"You are not at the DealerShip.");
      return 1;
}

 

Link to comment
Share on other sites

  • 0
Acum 1 oră, @SanJay a spus:

Ai deja 2 masini fara premium.... Daca nu ai cumparat vre-o masina pana acum.

Uite aici o comanda : 

CMD:buycar(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
    if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid,COLOR_GREY,"You need to be on foot.");
    if(IsPlayerInRangeOfPoint(playerid, 7.0, 328.3534,-1513.1687,36.0391))
    {
        if(PlayerInfo[playerid][pLevel] < 3) return SendClientMessage(playerid, COLOR_GREY, "You need level 3 to buy a vehicle.");
        BuyCar[playerid] = -1;
        ShowPlayerDialog(playerid,DIALOG_CARBUY, DIALOG_STYLE_LIST, "Buy a car", "Cheap cars\nRegular cars\nExpensive cars\nPremium cars", "Select", "Close");
    }
    else return SCM(playerid,COLOR_WHITE,"You are not at the DealerShip.");
      return 1;
}

Nu ai inteles. Nu mi arata dialogul sa cumpar masina

Link to comment
Share on other sites

  • 0

Pai... Uitate in baza de date daca ai masinile bagate si dupa uitate la DIALOG_BUYCAR sau daca nici asta nu merge ai gresit undeva si ti s a buguit DealerShip-ul... Aceeasi problema am avut si eu... am adaugat system VIP CAR pe gm s4uriK si a inceput sa mi se buguiasca gamemode-ul... /paint puteam sa il dau de unde voiam si avea verificarea sa fie in acel punct... PlayerToPoint(...) etc...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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