
Aurelijus
Members-
Posts
24 -
Joined
-
Last visited
Everything posted by Aurelijus
-
thanks
-
and without spawnplayer in server side i get correct skin but i spawn somewhere below the ground in village with coordinates 0.0000,0.0000,0.0000
-
Client side: function onRegisterKlink () local username = guiGetText(register_edit_user) local password = guiGetText(register_edit_pass) if (guiRadioButtonGetSelected(lytis_male)) then setElementModel(getLocalPlayer(), 287) fadeCamera(getLocalPlayer(),true, 2.0) setCameraTarget (getLocalPlayer(), getLocalPlayer()) stopmusic() guiSetVisible(fondo, false) guiSetVisible(gui_register, false) showCursor(false) elseif (guiRadioButtonGetSelected(lytis_female)) then setElementModel(getLocalPlayer(), 93) fadeCamera(getLocalPlayer(),true, 2.0) setCameraTarget (getLocalPlayer(), getLocalPlayer()) stopmusic() guiSetVisible(fondo, false) guiSetVisible(gui_register, false) showCursor(false) end if username ~= "" and password ~= "" then triggerServerEvent("register",getLocalPlayer(),getLocalPlayer(),username,password) end end addEventHandler("onClientGUIClick",register_boton_crear,onRegisterKlink,false) Server side: function register_func ( player, username, password) local acc = addAccount(username, password) if acc then logIn(player,acc,password) --REGISTRO EXITOSO triggerClientEvent(player,"closeRegister",player) spawnPlayer(player,2585.6975 , 41.7010 , 27.2649) outputChatBox("#AFAFAF[sERVER]#FFFFFF You have successfully registered",player,0,125,0, true) else -- REGISTRO ERROR CUENTA EXISTENTE triggerClientEvent(player,"errorRegistro",player) end end addEvent("register",true) addEventHandler("register",getRootElement(),register_func)
-
i already doing it and it's not working
-
i mean when i register if i will select gender male it should give my male skin when i spawn, if i select female gender it should give my female skin.
-
but my server side dont know what gender selected
-
yea but i dont know what gender are selected so i cant use setelementmodel by skin id, i need to get skin from client side (male skin or female skin)
-
i'am spawning with CJ skin
-
i should change it back to setelementposition in client side or leave spawnplayer?
-
this is my server side function register_func ( player, username, password) local acc = addAccount(username, password) if acc then logIn(player,acc,password) --REGISTRO EXITOSO triggerClientEvent(player,"closeRegister",player) outputChatBox("#AFAFAF[sERVER]#FFFFFF blablabla",player,0,125,0, true) else -- REGISTRO ERROR CUENTA EXISTENTE triggerClientEvent(player,"errorRegistro",player) end end addEvent("register",true) addEventHandler("register",getRootElement(),register_func)
-
i thought i can use it in client side like setelementposition. How can i spawn player with skin by selected gender in client side ?
-
all registration stopped working do you see any problems here? : function onRegisterKlink () local username = guiGetText(register_edit_user) local password = guiGetText(register_edit_pass) if (guiRadioButtonGetSelected(lytis_vyras)) then setElementModel(getLocalPlayer(), 287) spawnTeam = createTeam ("Zaidejas", 255, 0, 0) spawnPlayer (getLocalPlayer(), secretx , secrety , secretz, 0, 287, 0, 0, spawnTeam) fadeCamera(getLocalPlayer(),true, 2.0) setCameraTarget (getLocalPlayer(), getLocalPlayer()) stopmusic() guiSetVisible(fondo, false) guiSetVisible(gui_register, false) showCursor(false) elseif (guiRadioButtonGetSelected(sexo_mujer)) then setElementModel(getLocalPlayer(), 93) spawnTeam = createTeam ("Zaidejas", 255, 0, 0) spawnPlayer (getLocalPlayer(), secretx , secrety , secretz, 0, 93, 0, 0, spawnTeam) fadeCamera(getLocalPlayer(),true, 2.0) setCameraTarget (getLocalPlayer(), getLocalPlayer()) stopmusic() guiSetVisible(fondo, false) guiSetVisible(gui_register, false) showCursor(false) end if username ~= "" and password ~= "" then triggerServerEvent("register",getLocalPlayer(),getLocalPlayer(),username,password) end end addEventHandler("onClientGUIClick",register_boton_crear,onRegisterKlink,false)
-
THANKS. but i can't move now just stuck above the ground
-
i get black screen
-
deleted useless information
-
I don't know why but it's not working ...
-
This is a common problem with Zday script (zombies) all have this problem unless they fix it by themselves... Here is createzombie function: function createZombie ( x, y, z, rot, skin, interior, dimension ) if (table.getn( everyZombie ) < newZombieLimit ) then --this part handles the args if not x then return false end if not y then return false end if not z then return false end if not rot then rot = math.random (1,359) end if not skin then randomZskin = math.random ( 1, table.getn ( ZombiePedSkins ) ) skin = ZombiePedSkins[randomZskin] end if not interior then interior = 0 end if not dimension then dimension = 0 end --this part spawns the ped local zomb = createPed (tonumber(skin),tonumber(x),tonumber(y),tonumber(z))--spawns the ped --if successful, this part applies the zombie settings/args if (zomb ~= false) then setTimer ( setElementInterior, 100, 1, zomb, tonumber(interior)) --sets interior setTimer ( setElementDimension, 100, 1, zomb, tonumber(dimension)) --sets dimension setElementData ( zomb, "zombie", true ) setElementData ( zomb, "forcedtoexist", true ) setTimer ( function (zomb, rot) if ( isElement ( zomb ) ) then setPedRotation ( zomb, rot ) end end, 500, 1, zomb, rot ) setTimer ( function (zomb) if ( isElement ( zomb ) ) then setElementData ( zomb, "status", "idle" ) end end, 2000, 1, zomb ) setTimer ( function (zomb) if ( isElement ( zomb ) ) then setElementData ( zomb, "forcedtoexist", true ) end end, 1000, 1, zomb ) setTimer ( function (zomb) if ( isElement ( zomb ) ) then table.insert( everyZombie, zomb ) end end, 1000, 1, zomb ) triggerClientEvent ( "Zomb_STFU", getRootElement(), zomb ) return zomb --returns the zombie element else return false --returns false if there was a problem end else return false --returns false if there was a problem end end --check if a ped is a zombie or not function isPedZombie(ped) if (isElement(ped)) then if (getElementData (ped, "zombie") == true) then return true else return false end else return false end end addEvent( "onZombieLostPlayer", true ) function ZombieTargetCoords ( x,y,z ) setElementData ( source, "Tx", x, false ) setElementData ( source, "Ty", y, false ) setElementData ( source, "Tz", z, false ) end addEventHandler( "onZombieLostPlayer", getRootElement(), ZombieTargetCoords )
-
How to stop zombies spawning under water?
-
When i add object modelid: 19641 i get these errors and i can't see object: 19641 in game: [2015-09-19 12:12:06] ERROR: Bad 'model' id specified in <object> (line 108) [2015-09-19 12:12:06] ERROR: Bad 'model' id specified in <object> (line 111) [2015-09-19 12:12:06] ERROR: Bad 'model' id specified in <object> (line 116) [2015-09-19 12:12:06] ERROR: Bad 'model' id specified in <object> (line 119) [2015-09-19 12:12:06] ERROR: Bad 'model' id specified in <object> (line 154) Here one of these line: <object name="delux object (101)" posX="2126.87280" posY="41.84336" posZ="25.19180" rotX="0.00000" rotY="0.00000" rotZ="91.00000" model="19641" /> P.S I create maps with map editor and convert it to mta code with converter
-
When i add object modelid: 19641 i get these errors and i can't see object: 19641 in game: [2015-09-19 12:12:06] ERROR: Bad 'model' id specified in <object> (line 108) [2015-09-19 12:12:06] ERROR: Bad 'model' id specified in <object> (line 111) [2015-09-19 12:12:06] ERROR: Bad 'model' id specified in <object> (line 116) [2015-09-19 12:12:06] ERROR: Bad 'model' id specified in <object> (line 119) [2015-09-19 12:12:06] ERROR: Bad 'model' id specified in <object> (line 154) Here one of these line: <object name="delux object (101)" posX="2126.87280" posY="41.84336" posZ="25.19180" rotX="0.00000" rotY="0.00000" rotZ="91.00000" model="19641" /> P.S I create maps with map editor and convert it to mta code with converter
-
I FOUND BUG ON BRITISH BACKPACK HERE SCREEN SHOT LINK : http://snag.gy/PZsfh.jpg
-
Help i can't use admin access in admin control panel but can edit other player inventory? Then i try to give myself car it's shows that action is buggy...
-
THANKS DUDE :dd
-
help i can't complete forum register verification: please copy and paste this sentence.: Here screen shot: http://snag.gy/A5qlF.jpg