[center]Witam, dzi? zrobi?em skrypt na /stats, podacie mi mo?e kod / powiecie jak zrobi? gdy mamy prawko aby wy?wietla?o Tak a gdy nie Nie?[/center]
Kod:
[lua]function stats ( thePlayer )
local gracz = getPlayerName(thePlayer)
local money = getPlayerMoney(thePlayer)
local intek = getElementInterior(thePlayer)
local id = getElementID(thePlayer)
local uid = getElementID(thePlayer)
local stanhp = getElementHealth(thePlayer)
local armor = getPedArmor(thePlayer)
local skin = getPedSkin(thePlayer)
outputDebugString("Gracz " .. gracz .. " wpisa? komende /stats")
outputChatBox ( "#0066ff", source, 0, 100, 255, true )
outputChatBox ( "#0066ff**#99cc00Twoje Staty#0066ff**", source, 0, 100, 255, true )
outputChatBox ( "#0066ff*#99cc00Twoje konto Globalne: #FFFFFF" .. playerName .. " ", source, 0, 100, 255, true )
outputChatBox ( "#0066ff*#99cc00Nazwa Postaci: #FFFFFF" .. gracz .. " #99cc00ID: #FFFFFF0 ".. id .." #99cc00UID: #FFFFFF1" .. uid .. " #99cc00Interrior: #FFFFFF" .. intek .. "#0066ff*", source, 0, 100, 255, true )
outputChatBox ( "#0066ff*#99cc00Kasa: #FFFFFF" .. money .. "$ #99cc00Zycie: #FFFFFF" .. stanhp .. "%#99cc00#99cc00 Armor: #FFFFFF" .. armor .. "% #99cc00Skin: #FFFFFF" .. skin .. "#0066ff*", source, 0, 100, 255, true )
outputChatBox ( "#0066ff*#99cc00Prawko:#FFFFFF ... |