Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2014-12-09, 15:31


wwa22442







Wiek: 38
Na forum: 4706 dni
Posty: 127

Piwa: 82

Respekt: 50

Ostrzeżeń: 20%
Witam.

Jak zrobi? w tym skrypcie, aby podczas wpisania id np 281 [czyli policyjnego] nie m?g?by go nikt wybra? ?

oto skrypt :


local marker createMarker(2244.4982910156, -1664.881958007814.4765625"cylinder"2015525530)
local blip createBlip 2244.4982910156, -1664.881958007815.476562545 )


GUIEditor = {

    label = {}

}

ventana guiCreateGridList(0.330.280.340.34true)

guiSetAlpha(ventana0.85)
guiSetVisible ventanafalse )



GUIEditor.label[1] = guiCreateLabel(0.310.000.470.21"Skin Shop"trueventana)

guiSetFont(GUIEditor.label[1], "sa-header")


GUIEditor.label[2] = guiCreateLabel(0.240.270.460.11"Skin ID:"trueventana)

guiSetFont(GUIEditor.label[2], "default-bold-small")

guiLabelSetColor(GUIEditor.label[2], 411833)


edit guiCreateEdit(0.150.400.300.14""trueventana)


cerrar guiCreateButton(0.900.020.070.11"X"trueventana)

tomar guiCreateButton(0.300.690.440.18"Take Skin"trueventana)


GUIEditor.label[3] = guiCreateLabel(0.660.250.280.37"    Skin Cost:\n\n     10000 $"trueventana)

guiSetFont(GUIEditor.label[3], "default-bold-small")

guiLabelSetColor(GUIEditor.label[3], 27187227)

function abrir hitElement )
if getElementType(hitElement) == "player" and (hitElement == localPlayerthen
guiSetVisible(ventanatrue)
showCursor(true)
outputChatBox "Welcome to the Skin Shop!"2550)
end
end
addEventHandler("onClientMarkerHit"markerabrir)

function cerrarv()
    guiSetVisible ventanafalse )
    showCursor false )
    guiSetInputEnabled false )
end
addEventHandler("onClientGUIClick"cerrarcerrarvfalse)

function darskin()
local pMoney getPlayerMoney(source)
if pMoney >= 10000 then
takePlayerMoney 10000 )
setPlayerSkin(localPlayertonumberguiGetText edit ) ))
outputChatBox "Your skin has successful change!"0255)
else
outputChatBox "You dont have money!"2550)
end
end
addEventHandler("onClientGUIClick"tomardarskinfalse)


Za pomoc daje piwka :)

Pozdrawiam :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-12-09, 15:33


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4394 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

if cos == 281 then return end

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-12-09, 15:36


wwa22442







Wiek: 38
Na forum: 4706 dni
Posty: 127

Piwa: 82

Respekt: 50

Ostrzeżeń: 20%
Shuffle, w kt?rym miejscu to wstawi? ? Oraz jak doda? wi?cej ni? jeden ?

Postaw piwo autorowi tego posta
 

 
Tagi: zakaz :: uzywania :: skina
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » zakaz uzywania skina Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku