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

Wysłany: 2013-08-16, 15:48


mrmay4141

KOR Gaming Innovator






Wiek: 28
Na forum: 4860 dni
Posty: 86
Nick w MP: Sexyvise

Piwa: 4

Respekt: 50

Ostrzeżeń: 20%
Witam,mam problem z aren? anti-zombie.
W pliku mam ?e do areny mo?e wej?? tylko skin 287 a chcia?bym aby mogli do niej wej?? inne skiny.Podam kody i prosze o przerobienie kodu.

Kod:


safecol = createColCuboid ( 95.974617004395, 1751.3895263672, 17.640625, 255, 255, 255 )
safeZoneRadar = createRadarArea ( 95.974617004395, 1751.3895263672, 255, 255, 255, 255, 255 )
setElementData (safeZoneRadar, "zombieProof", true)


function enterZone(hitPlayer,thePlayer)
local skin = getElementModel (hitPlayer)
if ( skin == 287 ) then
toggleControl (hitPlayer, "fire", true )
toggleControl (hitPlayer, "aim_weapon", true)
toggleControl (hitPlayer, "vehicle_fire", true)
outputChatBox("Jestes na greenzonie.", hitPlayer, 0, 255, 0)
else
killPed (hitPlayer)
end
end
addEventHandler( "onColShapeHit", safecol, enterZone )

function leaveZone(hitPlayer,thePlayer)
local skin = getElementModel (hitPlayer)
toggleControl (hitPlayer, "fire", true)
toggleControl (hitPlayer, "aim_weapon", true)
toggleControl (hitPlayer, "vehicle_fire", true)
outputChatBox("Wyszedles poza greenzona", hitPlayer, 255, 0, 0)
if not ( skin == 287 ) then
killPed (hitPlayer)
end
end
addEventHandler( "onColShapeLeave", safecol, leaveZone )


Pr?bowa?em kopiowa? i podtym wkleja? z podmienionymi id skin?w ale nic nie da?o.[/code]

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-08-16, 15:56


vipSEBOvip

A poor begginer






Wiek: 26
Na forum: 5178 dni
Posty: 597
Nick w MP: xSebaPL

Piwa: 77

Respekt: 140
Respekt: 140

U?yj 'or' w ifie

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-08-16, 16:17


mrmay4141

KOR Gaming Innovator






Wiek: 28
Na forum: 4860 dni
Posty: 86
Nick w MP: Sexyvise

Piwa: 4

Respekt: 50

Ostrzeżeń: 20%
"vipSEBOvip" napisał/a:

U?yj 'or' w ifie


Prosze ja?niej

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-08-16, 18:01


Tostuch







Wiek: 27
Na forum: 4931 dni
Posty: 483
Nick w MP: Tost

Piwa: 137

Respekt: 110
Respekt: 110

Chodzi o t? linijk?:

if ( skin == 287 then 


Musisz tu doda? or aby wygl?da?o to tak:

if ( skin == 287 ) or ( skin == 299 then 
--[[  tu podajesz ?e je?eli jest  skin 287 albo 299 poniewa? or znaczy najzwyczajniej "lub".]]


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-08-16, 18:40


mrmay4141

KOR Gaming Innovator






Wiek: 28
Na forum: 4860 dni
Posty: 86
Nick w MP: Sexyvise

Piwa: 4

Respekt: 50

Ostrzeżeń: 20%
Nareszcie uda?o si?.

Piwo dla ciebie.

Postaw piwo autorowi tego posta
 

 
Tagi: anti-zombie-area
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Anti-Zombie-Area 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