Jump to content
  • 0

Question

11 answers to this question

Recommended Posts

  • 0
Posted (edited)
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

  • 0
Posted

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;
}

 

  • 0
Posted
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

  • 0
Posted

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.