Jump to content

[INC]Graf


ρŁสע|

Recommended Posts

 

Instalace:

 

1)Soubor Graf.inc vložte do složky "pawno/include".

2)Zapněte mod/script a nahoru napište:"#include ".

3)Do OnGameModeInit: CreateGraf(id,barva,X,Y);

__________________________________________________________________________

id=Zadejte id Grafu od 0 do 999

barva=Napište Modra,Zelena nebo Zluta (pište správně velká a malá písmena).

X,Y=Jsou to souřadnice na obrazovce.Podobně jako u TextDraw.

 

Příklad:

 

OnGameModeInit()

{

CreateGraf(0,Modra,10,150);

return 1;

}

__________________________________________________________________________

 

 

4)Do příkazu nebo do OnPlayerSpawn dejte pro zobrazení

 

__________________________________________________________________________

ShowGrafPlayer(playerid,id); - Zabrazí se hráči graf

ShowGrafToAll(id); - Zobrazí se všem hráčum graf

 

Pro schování:

 

HideGrafPlayer(playerid,id); - Schová se hráči graf

HideGrafToAll(id); - Schová se všem hráčum graf

 

playerid=Hráčovo Id.

id=Id Grafu.

 

Příklad:

OnPlayerSpawn(playerid)

{

ShowGrafPlayer(playerid,0);

return 1;

}

__________________________________________________________________________

 

 

5)Pro nastavení hodnoty v grafu použíte SetGraf(id,Hodnota);

__________________________________________________________________________

Hodnota je od 0 - 100

 

Příklad:

OnPlayerUpdate(playerid)

{

SetGraf(0,GetPlayerPing(playerid);

return 1;

}

__________________________________________________________________________

 

Link to comment
Share on other sites

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