Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. You aren't using it as a function. Replace: if ( 'getPreviousWeapon' == 1 ) then with: if ( getPreviousWeapon ( ) == 1 ) then
  2. The buildings in the second image doesn't look medieval at all. Good luck with it though.
  3. Do you get any new error? post the new code.
  4. function getPlayerPoints ( player, cmd, target ) if ( saveMethod == "database" ) then local target = getPlayerFromName ( tostring ( target ) ) if ( target ) then local serial = getPlayerSerial ( target ) local points = executeSQLSelect ( "Punktesystem", "points","serial = '" .. serial .. "'") outputChatBox ( points, target, 255, 0, 0, true ) if ( points ) then return tonumber ( points [ 1 ] [ "points" ] ) else outputDebugString ( "Pointsystem - getPlayerPoints (Db Problem" ) end else outputChatBox ( "Error: /getp [player name]", player, 255, 0, 0 ) end end end addCommandHandler ( "getp", getPlayerPoints )
  5. getPlayerIP getPlayerPing getPlayerSerial getPlayerName
  6. Have you fixed the ACL problem Et-win mentioned?
  7. That's a server-side script.
  8. getPlayerAccount getAccountName aclGetGroup isObjectInACLGroup Necesitas esas funciones.
  9. local GUIEditor = { window = { }, staticimage = { }, label = { }, button = { } } Put that on the top of the script.
  10. It does return errors, that's how I found out.
  11. Where is "isPlayerInTeam" function defined?
  12. "GUIEditor" table is missing, you obviously removed it from the code given by guieditor.
  13. "attachElements" function have rotation arguments.
  14. This only works with peds, not players.
  15. I don't know if it's more efficient, but it can be useful if you want two functions using the same name in two different script files within the same resource to do different things.
  16. Well, if you want it to work when you click a ped, you obviously need to create one. That script will also show the GUI when you click ANY ped.
  17. Because you are triggering it to 'source', not to 'root'.
  18. Set a element data when they use /peace and make the addEventHandler defined without having to use a command, then in "abortAllStealthKills" function check if the targetPlayer has that element data.
  19. Tenes que guardar la informacion en alguna parte, y luego verificar si tiene esa informacion.
  20. Well, the main problem is that you're using the table 'teamTable' in your 'if', but you should be using 'team' instead. function kicknotdueler ( hitElement, matchingDimension ) if ( matchingDimension and getElementType ( hitElement ) == "player" ) then local playerTeam = getPlayerTeam ( hitElement ) if ( playerTeam ~= team [ 7 ] ) then setElementPosition ( hitElement, 934.74, 1586.27, -17.50 ) setElementDimension ( hitElement, 1 ) outputChatBox ( "You are not allowed to be in the arena", getRootElement(), 255, 255, 109 ) end end end addEventHandler ( "onColShapeHit", colshape, kicknotdueler )
×
×
  • Create New...