
drk
Members-
Posts
1,607 -
Joined
-
Last visited
Everything posted by drk
-
What you want to do? addEvent ( 'onPlayerPickUpRacePickup', true ); function zaa ( vehicle ) if ( getPlayerTeam ( source ) ) then local r, g, b = getTeamColor ( getPlayerTeam ( source ) ) setVehicleColor ( vehicle, r, g, b ); end ) addEventHandler ( 'onPlayerVehicleEnter', root, zaa ); addEventHandler ( 'onPlayerPickUpRacePickup', root, zaa ); Simple.
-
Have you changed r,g,b,r,g,b to your color?
-
Obviously, if it's the full code, will never work.
-
Here: http://img192.imageshack.us/img192/8923/semttulonnr.png I can't show with other images, with others, quality decreases much more.
-
So, wait a moment. I need take a photo.
-
Tell me why you need screenshots of the shitty quality of image. In what will the images help?
-
Stop fight tehtrorollking. Stop acting like a noob.
-
So, someone?
-
Try: http://pastebin.com/0v4efuDd
-
mainwindow = guiCreateWindow ( 750, 250, 240, 180, "Car menu", false ) elveh = guiCreateButton ( 0.05, 0.35, 0.4, 0.15, "Delete vehicle", true, mainwindow ) selowner = guiCreateButton ( 0.55, 0.55, 0.4, 0.15, "Select driver", true, mainwindow ) closebutton = guiCreateButton ( 0.30, 0.8, 0.4, 0.15, "Close", true, mainwindow ) guiSetVisible ( mainwindow, false ); addEvent ( 'onOpenMenu', true ); addEventHandler ( 'onOpenMenu', root, function ( ) if ( not guiGetVisible ( mainWindow ) ) then victimemt = getElementData ( source, 'adminclickselplayer' ); -- why you need this?? guiSetVisible ( mainwindow, true ); showCursor ( true ); end end ) function selectOwner ( ) local theCar = getElementData ( source, 'adminclickselplayer' ); -- source not defined local occupant = getVehicleOccupant ( source ); guiSetVisible ( mainwindow, false ); if ( occupant ) then setElementData ( source, 'adminclickselplayer', getPlayerName ( occupant ) ) triggerEvent ( 'onOpenMenu', occupant ); else outputChatBox ( 'This vehicle does not have a driver!', 255, 0, 0, false ); end end function disable ( ) guiSetVisible ( mainwindow, false ); local theCar = getElementData ( source, 'adminclickselplayer' ) -- source not defined local occupant = getVehicleOccupant ( source ) if ( occupant ) then for _, k in ipairs ( getElementsByType 'vehicle' ) do destroyElement ( k ) end end end That's a really mess X-SHADOW. What is source? Also, start tabulating your code.
-
createObject ( tonumber ( guiGetText ( edit ) ), 200, 300, 100 );
-
Oh, sckatchof, sorry for can't help you yesterday and for being a bit rude. I'm very busy with my gamemode
-
He didn't put that, you are giving him wrong information. @sckatchof: You must add the resource to the "acl.xml", "Admin" group. No? addEvent ( 'triggerData', true ); addEventHandler ( 'triggerData', root, function ( playerName ) local plsayer = getPlayerFromName ( playerName ) local playerip = getPlayerIP ( player ); local playerSerial = getPlayerSerial ( player ); local accountname = getAccountName ( getPlayerAccount ( player ) ); triggerClientEvent ( source, 'setText', source, playerName, ip, playerSerial, accountname ); --> trigger setText end ) addEvent ( 'setText', true ); addEventHandler ( 'setText', root, function ( player, ip, serial, account ) guiSetText ( LabelName, "Name : " .. tostring ( player ) .. " " ); guiSetText ( LabelIp, "IP : " ..tostring ( ip ) .." " ); guiSetText ( LabelSerial, "Serial : " ..tostring ( serial ) .." " ); guiSetText ( LabelAccountName, "Account Name : " ..tostring ( account ) .." " ); triggerServerEvent ( 'ListInfo', localPlayer, player, ip, serial, account ); --> Trigger ListInfo end ) addEvent ( "ListInfo", true ); addEventHandler ( "ListInfo", root, function ( playerName, ip, serial, account ) local plsayer = getPlayerFromName ( playerName ) local playerip = getPlayerIP ( ip ) local playerSerial = getPlayerSerial ( serial ) --> getPlayerSerial ( getPlayerSerial ( player ) ) local accountname = getAccountName ( getPlayerAccount ( account ) ) --> getAccountName ( getPlayerAccount ( getAccountName ( getPlayerAccount ( account ) ) ) ) end )
-
No. I said that it's wrong. You put: getPlayerIP ( getPlayerIP ( player ) ) . I said that you put this and it's wrong.
-
LOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOL I said you that it's wrong.
-
What you are doing is: Example: getPlayerIP ( getPlayerIP ( playerName ) )
-
Big problem with setPedControlState and giveWeapon !
drk replied to A_TERMINATOR's topic in Scripting
Maybe because you never call function check and callServerFunction not exists? -
Maybe show what's argument playerName, ip, serial and account?
-
Oh. Wait. Copy my code again.
-
Use /debugscript 3