Jump to content
  • 0

pomoc Zobrazení ID


SLAID

Dotaz

Ahojte, mám dotaz potřeboval bych nastavit do FS aby se v chatu za jménem zobrazovalo ID daného hráče aby to člověk nemusel pořád hledat přes TAB (skore tabulku)

Díky za pomoc :) SLAID

Link to comment
Share on other sites

4 odpovědí na tuto otázku

Recommended Posts

  • 0

Nabudúce hľadaj ;)

format(string,128, "(%d) %s", playerid,text);
SendPlayerMessageToAll(playerid, string);

Len aspoň TY porozmýšľaj že kam to má ísť a čo tomu chýba ;)

Link to comment
Share on other sites

  • 0

super díky funguje akorát mi to pošle 2 zprávy jako takhle

 

SLAID: (0): test

SLAID: test

 

takže teď nevím zas jak nastavit to aby se nezobrazovalo to bez ID... :d

Link to comment
Share on other sites

  • 0
  • Globální moderátor

OnPlayerText

 

https://wiki.sa-mp.com/wiki/OnPlayerText

 

Mas tam dokonce priklad s tim ID, na co se snazim poukazat je tato informace:

 

Return Values:

Returning 0 in this callback will stop the text from being sent to all players
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...