Jump to content

duduRastaman

Members
  • Posts

    12
  • Joined

  • Last visited

Details

  • Gang
    Rastagang

duduRastaman's Achievements

Square

Square (6/54)

0

Reputation

  1. yea thats wat i mean i send the player element as argument to the clientside and compare it, but if u sayin that u not sure if its efficient, i will start using triggerClientEvent the way u showed me.Thnk u very much bro U helped me a lot
  2. but omg if i had done it this way like : triggerClientEvent("hideWindow",thePlayer,thePlayer) -- im using the second thePlayer as argument to send to the hideWindow event then i use thePlayer as argument for the hideWindow event in the clientside, will it work?? bekoz thats wat i normally do for all my jobs Thnks for ur help man
  3. ok, heres the code, the serverside : BTW, thnks for the help guys, but understandin everythin wat wiki says is kinda hard for me but i always try my best. After makin postman,bus and taxi job, i decided to make the login panel, but i got this problem
  4. Hey guys,i made a login/register panel and the problem is when 2 players connect, either one of them cant see the panel or sometimes, both cant see the panel, but when they dont connect at the same time, they can see it Everythin works fine with the registration and login. The only problem is that it dissapears when 2 players try to connect to server heres the client side code : The server side contains only the check for username and password . Help me plz. Thank you for your time.
  5. duduRastaman

    URGENT!

    pffft dont worry, we got all mods and tmods and blalalalalaaaa we need And they are nice guys too ^^, so, no need to worry now. btw, im dark !!!!!!!
  6. Hi solid, no i did not edit the acl while the resource was running and no errors.
  7. Hi breddas and sistas So here it is, [1] da problem is that even a moderator can use ban O_O, even after i edited the acl, he can also see all the resources and add players in acl( in admin panel with manage acl) ( How can i solve this problem ? thnks in advance guys "Everyone"> "Default"> "user.*"> "resource.*"> "Moderator"> "Moderator"> "resource.mapcycler"> "resource.mapmanager"> "resource.resourcemanager"> "resource.votemanager"> "user.jean"> "SuperModerator"> "Moderator"> "SuperModerator"> "user.kevin"> "Admin"> "Moderator"> "SuperModerator"> "Admin"> "RPC"> "user.[DSL]Darkwarrior"> "resource.admin"> "resource.webadmin"> "user.diesel"> "resource.help1"> "resource.warnplayers"> "Console"> "Moderator"> "SuperModerator"> "Admin"> "RPC"> "user.Console"> "RPC"> "RPC"> "MapEditor"> "Default"> "MapEditor"> "resource.editor_main"> "resource.edf"> "raceACLGroup"> "Default"> "raceACL"> "resource.race"> "DevGroup"> "DevACL"> "Default"> "general.ModifyOtherObjects" access="false"> "general.http" access="false"> "command.start" access="false"> "command.stop" access="false"> "command.stopall" access="false"> "command.gamemode" access="false"> "command.changemode" access="false"> "command.changemap" access="false"> "command.stopmode" access="false"> "command.stopmap" access="false"> "command.skipmap" access="false"> "command.restart" access="false"> "command.refresh" access="false"> "command.refreshall" access="false"> "command.addaccount" access="false"> "command.delaccount" access="false"> "command.debugscript" access="false"> "command.chgpass" access="false"> "command.loadmodule" access="false"> "command.upgrade" access="false"> "command.mute" access="false"> "command.crun" access="false"> "command.srun" access="false"> "command.run" access="false"> "command.unmute" access="false"> "command.kick" access="false"> "command.ban" access="false"> "command.banip" access="false"> "command.unbanip" access="false"> "command.reloadbans" access="false"> "command.shutdown" access="false"> "command.install" access="false"> "command.aexec" access="false"> "command.whois" access="false"> "command.whowas" access="false"> "function.executeCommandHandler" access="false"> "function.setPlayerMuted" access="false"> "function.addAccount" access="false"> "function.addBan" access="false"> "function.removeBan" access="false"> "function.removeAccount" access="false"> "function.setAccountPassword" access="false"> "function.kickPlayer" access="false"> "function.banIP" access="false"> "function.banPlayer" access="false"> "function.banSerial" access="false"> "function.getBansXML" access="false"> "function.unbanIP" access="false"> "function.unbanSerial" access="false"> "function.reloadBans" access="false"> "function.setServerPassword" access="false"> "function.getServerPassword" access="false"> "function.callRemote" access="false"> "function.fetchRemote" access="false"> "function.startResource" access="false"> "function.stopResource" access="false"> "function.restartResource" access="false"> "function.createResource" access="false"> "function.copyResource" access="false"> "function.addResourceMap" access="false"> "function.addResourceConfig" access="false"> "function.removeResourceFile" access="false"> "function.setResourceDefaultSetting" access="false"> "function.removeResourceDefaultSetting" access="false"> "function.redirectPlayer" access="false"> "function.aclReload" access="false"> "function.aclSave" access="false"> "function.aclCreate" access="false"> "function.aclDestroy" access="false"> "function.aclSetRight" access="false"> "function.aclRemoveRight" access="false"> "function.aclCreateGroup" access="false"> "function.aclDestroyGroup" access="false"> "function.aclGroupAddACL" access="false"> "function.aclGroupRemoveACL" access="false"> "function.aclGroupAddObject" access="false"> "function.aclGroupRemoveObject" access="false"> "function.refreshResources" access="false"> "function.setServerConfigSetting" access="false"> "function.updateResourceACLRequest" access="false"> "command.aclrequest" access="false"> "general.adminpanel" access="false"> "general.tab_players" access="false"> "general.tab_resources" access="false"> "general.tab_maps" access="false"> "general.tab_server" access="false"> "general.tab_bans" access="false"> "general.tab_adminchat" access="false"> "command.freeze" access="false"> "command.setnick" access="false"> "command.shout" access="false"> "command.spectate" access="false"> "command.slap" access="false"> "command.setgroup" access="false"> "command.sethealth" access="false"> "command.setarmour" access="false"> "command.setmoney" access="false"> "command.setskin" access="false"> "command.setteam" access="false"> "command.giveweapon" access="false"> "command.setstat" access="false"> "command.jetpack" access="false"> "command.warp" access="false"> "command.setdimension" access="false"> "command.setinterior" access="false"> "command.givevehicle" access="false"> "command.repair" access="false"> "command.blow" access="false"> "command.destroy" access="false"> "command.customize" access="false"> "command.setcolor" access="false"> "command.setpaintjob" access="false"> "command.listmessages" access="false"> "command.readmessage" access="false"> "command.listresources" access="false"> "command.execute" access="false"> "command.delete" access="false"> "command.setpassword" access="false"> "command.setwelcome" access="false"> "command.setgame" access="false"> "command.setmap" access="false"> "command.setweather" access="false"> "command.blendweather" access="false"> "command.setblurlevel" access="false"> "command.setwaveheight" access="false"> "command.setskygradient" access="false"> "command.setgamespeed" access="false"> "command.setgravity" access="false"> "command.settime" access="false"> "function.shutdown" access="false"> "command.setfpslimit" access="false"> "command.fetchRemote" access="false"> "command.unban" access="false"> "command.banserial" access="false"> "command.unbanserial" access="false"> "command.listbans" access="false"> "Moderator"> "general.ModifyOtherObjects" access="false"> "command.gamemode" access="true"> "command.changemode" access="true"> "command.changemap" access="true"> "command.stopmode" access="true"> "command.stopmap" access="true"> "command.skipmap" access="true"> "command.mute" access="true"> "command.unmute" access="true"> "command.whois" access="true"> "command.whowas" access="true"> "function.setPlayerMuted" access="true"> "function.kickPlayer" access="true"> "function.banIP" access="true"> "function.banPlayer" access="false"> "function.banSerial" access="false"> "function.getBansXML" access="false"> "function.unbanIP" access="true"> "function.unbanSerial" access="true"> "function.startResource" access="false"> "function.stopResource" access="false"> "function.restartResource" access="false"> "function.redirectPlayer" access="true"> "general.adminpanel" access="true"> "general.tab_players" access="true"> "general.tab_resources" access="false"> "general.tab_maps" access="false"> "general.tab_server" access="false"> "general.tab_bans" access="false"> "general.tab_adminchat" access="true"> "command.kick" access="false"> "command.freeze" access="true"> "command.setnick" access="true"> "command.shout" access="true"> "command.spectate" access="true"> "command.slap" access="true"> "command.setgroup" access="false"> "command.sethealth" access="true"> "command.setarmour" access="true"> "command.setmoney" access="false"> "command.setskin" access="true"> "command.setteam" access="true"> "command.giveweapon" access="true"> "command.setstat" access="true"> "command.jetpack" access="true"> "command.warp" access="true"> "command.setdimension" access="true"> "command.setinterior" access="true"> "command.createteam" access="false"> "command.destroyteam" access="false"> "command.givevehicle" access="true"> "command.repair" access="true"> "command.blowvehicle" access="true"> "command.destroyvehicle" access="true"> "command.customize" access="true"> "command.setcolor" access="true"> "command.setpaintjob" access="true"> "command.listmessages" access="true"> "command.readmessage" access="true"> "command.listresources" access="true"> "command.start" access="false"> "command.stop" access="false"> "command.stopall" access="false"> "command.restart" access="false"> "command.execute" access="false"> "command.setpassword" access="false"> "command.setwelcome" access="false"> "command.setgame" access="false"> "command.setmap" access="false"> "command.setweather" access="true"> "command.blendweather" access="true"> "command.setblurlevel" access="true"> "command.setwaveheight" access="true"> "command.setskygradient" access="true"> "command.setgamespeed" access="true"> "command.setgravity" access="true"> "command.settime" access="true"> "command.ban" access="false"> "command.unban" access="false"> "command.banip" access="false"> "command.unbanip" access="false"> "command.banserial" access="false"> "command.unbanserial" access="false"> "command.listbans" access="false"> "SuperModerator"> "general.ModifyOtherObjects" access="false"> "command.start" access="true"> "command.stop" access="true"> "command.restart" access="true"> "command.kick" access="true"> "command.ban" access="true"> "command.banip" access="true"> "command.unbanip" access="true"> "command.reloadbans" access="true"> "command.refresh" access="true"> "command.refreshall" access="true"> "command.loadmodule" access="true"> "command.addaccount" access="true"> "command.delaccount" access="true"> "command.chgpass" access="true"> "function.addAccount" access="true"> "function.removeAccount" access="true"> "function.setAccountPassword" access="true"> "general.adminpanel" access="true"> "general.tab_players" access="true"> "general.tab_resources" access="true"> "general.tab_maps" access="true"> "general.tab_server" access="true"> "general.tab_bans" access="true"> "general.tab_adminchat" access="true"> "command.freeze" access="true"> "command.mute" access="true"> "command.setnick" access="true"> "command.shout" access="true"> "command.spectate" access="true"> "command.slap" access="true"> "command.setgroup" access="false"> "command.sethealth" access="true"> "command.setarmour" access="true"> "command.setmoney" access="true"> "command.setskin" access="true"> "command.setteam" access="true"> "command.giveweapon" access="true"> "command.setstat" access="true"> "command.jetpack" access="true"> "command.warp" access="true"> "command.setdimension" access="true"> "command.setinterior" access="true"> "command.createteam" access="true"> "command.destroyteam" access="true"> "command.givevehicle" access="true"> "command.repair" access="true"> "command.blowvehicle" access="true"> "command.destroyvehicle" access="true"> "command.customize" access="true"> "command.setcolor" access="true"> "command.setpaintjob" access="true"> "command.listmessages" access="true"> "command.readmessage" access="true"> "command.listresources" access="true"> "command.stopall" access="false"> "command.execute" access="false"> "command.setpassword" access="true"> "command.setwelcome" access="true"> "command.setgame" access="true"> "command.setmap" access="true"> "command.setweather" access="true"> "command.blendweather" access="true"> "command.setblurlevel" access="true"> "command.setwaveheight" access="true"> "command.setskygradient" access="true"> "command.setgamespeed" access="true"> "command.setgravity" access="true"> "command.settime" access="true"> "command.unban" access="true"> "command.banserial" access="true"> "command.unbanserial" access="true"> "command.listbans" access="true"> "Admin"> "general.ModifyOtherObjects" access="true"> "general.http" access="true"> "command.shutdown" access="true"> "command.install" access="true"> "command.aexec" access="true"> "command.debugscript" access="true"> "command.upgrade" access="true"> "command.crun" access="true"> "command.srun" access="true"> "command.run" access="true"> "function.addBan" access="true"> "function.removeBan" access="true"> "function.reloadBans" access="true"> "function.executeCommandHandler" access="true"> "function.setServerPassword" access="true"> "function.getServerPassword" access="true"> "function.createResource" access="true"> "function.copyResource" access="true"> "function.addResourceMap" access="true"> "function.addResourceConfig" access="true"> "function.removeResourceFile" access="true"> "function.setResourceDefaultSetting" access="true"> "function.removeResourceDefaultSetting" access="true"> "function.aclReload" access="true"> "function.aclSave" access="true"> "function.aclCreate" access="true"> "function.aclDestroy" access="true"> "function.aclSetRight" access="true"> "function.aclRemoveRight" access="true"> "function.aclCreateGroup" access="true"> "function.aclDestroyGroup" access="true"> "function.aclGroupAddACL" access="true"> "function.aclGroupRemoveACL" access="true"> "function.aclGroupAddObject" access="true"> "function.aclGroupRemoveObject" access="true"> "function.refreshResources" access="true"> "function.setServerConfigSetting" access="true"> "function.updateResourceACLRequest" access="true"> "command.aclrequest" access="true"> "general.adminpanel" access="true"> "general.tab_players" access="true"> "general.tab_resources" access="true"> "general.tab_server" access="true"> "general.tab_maps" access="true"> "general.tab_bans" access="true"> "general.tab_adminchat" access="true"> "command.kick" access="true"> "command.freeze" access="true"> "command.mute" access="true"> "command.setnick" access="true"> "command.shout" access="true"> "command.spectate" access="true"> "command.slap" access="true"> "command.setgroup" access="true"> "command.sethealth" access="true"> "command.setarmour" access="true"> "command.setmoney" access="true"> "command.setskin" access="true"> "command.setteam" access="true"> "command.giveweapon" access="true"> "command.setstat" access="true"> "command.jetpack" access="true"> "command.warp" access="true"> "command.setdimension" access="true"> "command.setinterior" access="true"> "command.createteam" access="true"> "command.destroyteam" access="true"> "command.givevehicle" access="true"> "command.repair" access="true"> "command.blowvehicle" access="true"> "command.destroyvehicle" access="true"> "command.customize" access="true"> "command.setcolor" access="true"> "command.setpaintjob" access="true"> "command.listmessages" access="true"> "command.readmessage" access="true"> "command.listresources" access="true"> "command.start" access="true"> "command.stop" access="true"> "command.stopall" access="false"> "command.delete" access="true"> "command.restart" access="true"> "command.execute" access="true"> "command.setpassword" access="true"> "command.setwelcome" access="true"> "command.setgame" access="true"> "command.setmap" access="true"> "command.setweather" access="true"> "command.blendweather" access="true"> "command.setblurlevel" access="true"> "command.setwaveheight" access="true"> "command.setskygradient" access="true"> "command.setgamespeed" access="true"> "command.setgravity" access="true"> "command.settime" access="true"> "command.setfpslimit" access="true"> "function.shutdown" access="true"> "command.ban" access="true"> "command.unban" access="true"> "command.banip" access="true"> "command.unbanip" access="true"> "command.banserial" access="true"> "command.unbanserial" access="true"> "command.listbans" access="true"> "RPC"> "function.callRemote" access="true"> "function.fetchRemote" access="true"> "general.adminpanel" access="false"> "general.tab_players" access="false"> "general.tab_resources" access="false"> "general.tab_maps" access="false"> "general.tab_server" access="false"> "general.tab_bans" access="false"> "general.tab_adminchat" access="false"> "command.kick" access="false"> "command.freeze" access="false"> "command.mute" access="false"> "command.setnick" access="false"> "command.shout" access="false"> "command.spectate" access="false"> "command.slap" access="false"> "command.setgroup" access="false"> "command.sethealth" access="false"> "command.setarmour" access="false"> "command.setmoney" access="false"> "command.setskin" access="false"> "command.setteam" access="false"> "command.giveweapon" access="false"> "command.setstat" access="false"> "command.jetpack" access="false"> "command.warp" access="false"> "command.setdimension" access="false"> "command.setinterior" access="false"> "command.givevehicle" access="false"> "command.repair" access="false"> "command.blow" access="false"> "command.destroy" access="false"> "command.customize" access="false"> "command.setcolor" access="false"> "command.setpaintjob" access="false"> "command.listmessages" access="false"> "command.readmessage" access="false"> "command.listresources" access="false"> "command.start" access="false"> "command.stop" access="false"> "command.stopall" access="false"> "command.restart" access="false"> "command.execute" access="false"> "command.delete" access="false"> "command.setpassword" access="false"> "command.setwelcome" access="false"> "command.setgame" access="false"> "command.setmap" access="false"> "command.setweather" access="false"> "command.blendweather" access="false"> "command.setblurlevel" access="false"> "command.setwaveheight" access="false"> "command.setskygradient" access="false"> "command.setgamespeed" access="false"> "command.setgravity" access="false"> "command.settime" access="false"> "function.shutdown" access="false"> "command.setfpslimit" access="false"> "command.fetchRemote" access="false"> "command.ban" access="false"> "command.unban" access="false"> "command.banip" access="false"> "command.unbanip" access="false"> "command.banserial" access="false"> "command.unbanserial" access="false"> "command.listbans" access="false"> "MapEditor"> "general.ModifyOtherObjects" access="true"> "function.startResource" access="true"> "function.stopResource" access="true"> "function.restartResource" access="true"> "function.createResource" access="true"> "function.copyResource" access="true"> "function.renameResource" access="true"> "function.deleteResource" access="true"> "function.addResourceMap" access="true"> "function.addResourceConfig" access="true"> "function.removeResourceFile" access="true"> "function.setResourceDefaultSetting" access="true"> "function.removeResourceDefaultSetting" access="true"> "function.xmlLoadFile" access="true"> "general.adminpanel" access="false"> "general.tab_players" access="false"> "general.tab_resources" access="false"> "general.tab_maps" access="false"> "general.tab_server" access="false"> "general.tab_bans" access="false"> "general.tab_adminchat" access="false"> "command.kick" access="false"> "command.freeze" access="false"> "command.mute" access="false"> "command.setnick" access="false"> "command.shout" access="false"> "command.spectate" access="false"> "command.slap" access="false"> "command.setgroup" access="false"> "command.sethealth" access="false"> "command.setarmour" access="false"> "command.setmoney" access="false"> "command.setskin" access="false"> "command.setteam" access="false"> "command.giveweapon" access="false"> "command.setstat" access="false"> "command.jetpack" access="false"> "command.warp" access="false"> "command.setdimension" access="false"> "command.setinterior" access="false"> "command.givevehicle" access="false"> "command.repair" access="false"> "command.blow" access="false"> "command.destroy" access="false"> "command.customize" access="false"> "command.setcolor" access="false"> "command.setpaintjob" access="false"> "command.listmessages" access="false"> "command.readmessage" access="false"> "command.listresources" access="false"> "command.start" access="false"> "command.stop" access="false"> "command.stopall" access="false"> "command.restart" access="false"> "command.execute" access="false"> "command.delete" access="false"> "command.setpassword" access="false"> "command.setwelcome" access="false"> "command.setgame" access="false"> "command.setmap" access="false"> "command.setweather" access="false"> "command.blendweather" access="false"> "command.setblurlevel" access="false"> "command.setwaveheight" access="false"> "command.setskygradient" access="false"> "command.setgamespeed" access="false"> "command.setgravity" access="false"> "command.settime" access="false"> "function.shutdown" access="false"> "command.setfpslimit" access="false"> "command.fetchRemote" access="false"> "command.ban" access="false"> "command.unban" access="false"> "command.banip" access="false"> "command.unbanip" access="false"> "command.banserial" access="false"> "command.unbanserial" access="false"> "command.listbans" access="false"> "raceACL"> "general.ModifyOtherObjects" access="true"> "function.xmlLoadFile" access="true"> "function.startResource" access="true"> "function.stopResource" access="true"> "function.restartResource" access="true"> "general.adminpanel" access="false"> "general.tab_players" access="false"> "general.tab_resources" access="false"> "general.tab_maps" access="false"> "general.tab_server" access="false"> "general.tab_bans" access="false"> "general.tab_adminchat" access="false"> "command.kick" access="false"> "command.freeze" access="false"> "command.mute" access="false"> "command.setnick" access="false"> "command.shout" access="false"> "command.spectate" access="false"> "command.slap" access="false"> "command.setgroup" access="false"> "command.sethealth" access="false"> "command.setarmour" access="false"> "command.setmoney" access="false"> "command.setskin" access="false"> "command.setteam" access="false"> "command.giveweapon" access="false"> "command.setstat" access="false"> "command.jetpack" access="false"> "command.warp" access="false"> "command.setdimension" access="false"> "command.setinterior" access="false"> "command.givevehicle" access="false"> "command.repair" access="false"> "command.blow" access="false"> "command.destroy" access="false"> "command.customize" access="false"> "command.setcolor" access="false"> "command.setpaintjob" access="false"> "command.listmessages" access="false"> "command.readmessage" access="false"> "command.listresources" access="false"> "command.start" access="false"> "command.stop" access="false"> "command.stopall" access="false"> "command.restart" access="false"> "command.execute" access="false"> "command.delete" access="false"> "command.setpassword" access="false"> "command.setwelcome" access="false"> "command.setgame" access="false"> "command.setmap" access="false"> "command.setweather" access="false"> "command.blendweather" access="false"> "command.setblurlevel" access="false"> "command.setwaveheight" access="false"> "command.setskygradient" access="false"> "command.setgamespeed" access="false"> "command.setgravity" access="false"> "command.settime" access="false"> "function.shutdown" access="false"> "command.setfpslimit" access="false"> "command.fetchRemote" access="false"> "command.ban" access="false"> "command.unban" access="false"> "command.banip" access="false"> "command.unbanip" access="false"> "command.banserial" access="false"> "command.unbanserial" access="false"> "command.listbans" access="false"> "DevACL"> "resource.performancebrowser.http" access="true"> "resource.ajax.http" access="true"> "general.adminpanel" access="false"> "general.tab_players" access="false"> "general.tab_resources" access="false"> "general.tab_maps" access="false"> "general.tab_server" access="false"> "general.tab_bans" access="false"> "general.tab_adminchat" access="false"> "command.kick" access="false"> "command.freeze" access="false"> "command.mute" access="false"> "command.setnick" access="false"> "command.shout" access="false"> "command.spectate" access="false"> "command.slap" access="false"> "command.setgroup" access="false"> "command.sethealth" access="false"> "command.setarmour" access="false"> "command.setmoney" access="false"> "command.setskin" access="false"> "command.setteam" access="false"> "command.giveweapon" access="false"> "command.setstat" access="false"> "command.jetpack" access="false"> "command.warp" access="false"> "command.setdimension" access="false"> "command.setinterior" access="false"> "command.givevehicle" access="false"> "command.repair" access="false"> "command.blow" access="false"> "command.destroy" access="false"> "command.customize" access="false"> "command.setcolor" access="false"> "command.setpaintjob" access="false"> "command.listmessages" access="false"> "command.readmessage" access="false"> "command.listresources" access="false"> "command.start" access="false"> "command.stop" access="false"> "command.stopall" access="false"> "command.restart" access="false"> "command.execute" access="false"> "command.delete" access="false"> "command.setpassword" access="false"> "command.setwelcome" access="false"> "command.setgame" access="false"> "command.setmap" access="false"> "command.setweather" access="false"> "command.blendweather" access="false"> "command.setblurlevel" access="false"> "command.setwaveheight" access="false"> "command.setskygradient" access="false"> "command.setgamespeed" access="false"> "command.setgravity" access="false"> "command.settime" access="false"> "function.shutdown" access="false"> "command.setfpslimit" access="false"> "command.fetchRemote" access="false"> "command.ban" access="false"> "command.unban" access="false"> "command.banip" access="false"> "command.unbanip" access="false"> "command.banserial" access="false"> "command.unbanserial" access="false"> "command.listbans" access="false"> [2] my autoteam doesnt work idk why !!! when a player logins and if hes admin, he doesnt appear in admin team in scoreboard -- this will create players team function createTeamOnStart() AdminTeam = createTeam("Admin",0,255,0) SModTeam = createTeam("SuperModerator",255,0,0) ModTeam = createTeam("Moderator",0,0,255) TModTeam = createTeam("T-Mod",251,253,254) OtherTeam = createTeam("Others",0,0,0) end addEventHandler("onResourceStart",resourceRoot, createTeamOnStart) function setTeamPlayer (_,account) local accName = getAccountName(account) if isObjectInACLGroup("user."..accName, aclGetGroup("Admin")) then setPlayerTeam(source,AdminTeam) elseif isObjectInACLGroup("user."..accName, aclGetGroup("SuperModerator")) then setPlayerTeam(source,SModTeam) elseif isObjectInACLGroup("user."..accName, aclGetGroup("Moderator")) then setPlayerTeam(source,ModTeam) elseif isObjectInACLGroup("user."..accName, aclGetGroup("T-Mod")) then setPlayerTeam(source,TModTeam) else setPlayerTeam(source,OtherTeam) end outputChatBox(getPlayerName(source).." is now in team "..getTeamName(getPlayerTeam(source))) end addEventHandler("onPlayerLogin", getRootElement(), setTeamPlayer) Thnks guys :')
  8. hey guys sorry for late reply. i tried as far as i can but O_O i think its server problem, lots of runcode dont work!!! shit, but anyway, God bless u all, thnks breddas Be blessed !!!
  9. ABBBBBBB 47 thnk u bro lol that silly mistake. but bro, can u tell me how to use setElementAlpha ingame with runcode, i cant use it idk why my ingame name is duduRastaman and when i type run setElementAlpha(getPlayerFromName("duduRastaman", 0) i get some errors which i cant understand anyway, thnk u very much for ur reply bro
  10. Ab-47, i just edited the post, cause i did not well explain my problem
  11. thnks bro but still not working. everything is workin fine, only when i hit the marker, nothin happens. i dont get the money ((
  12. [EDITED] Hi guys. its been 3 weeks that i started learnin to script at mta wiki, soo i practically did a small postman job. Almost everything is workin fine but the big problem is when i hit the marker, nothing happens . i tried to look for the problem with debugscript 3, but no errors wheni click the accept button, i get on the vehicle, and i can see the marker to go. but when i go there, and when i hit the marker, i dont get the money:(((( nothin happens heres the code client.lua : postMarker = createMarker(1961.960,-1674.148,15, "cylinder", 1.0,0,125,0,50) createBlipAttachedTo(postMarker, 41) local locations = { { 571, -1307, 17 }, { 1001, -1043, 30 }, { 942, -1817, 12 }, { 1224, -1826, 13 }, { 1777, -1885, 13 } } function postmanGui () postWindow = guiCreateWindow(0.325,0.325,0.35,0.25, "Postman job \"{SMILIES_PATH}/icon_biggrin.gif\" alt=\"\" title=\"Very Happy\" /> ", true) btnAccept = guiCreateButton(0.415,0.7,0.25,0.2, "Accept",true, postWindow) addEventHandler("onClientGUIClick",btnAccept,postAccept) btnReject = guiCreateButton(0.715,0.7,0.25,0.2, "Reject", true, postWindow) addEventHandler("onClientGUIClick",btnReject,postReject) guiSetVisible(postWindow, false) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function () postmanGui () end ) function markerhit(thePlayer, matchingDimension) if ( thePlayer == getLocalPlayer() ) then guiSetVisible(postWindow, true) showCursor(true) end end addEventHandler("onClientMarkerHit", postMarker, markerhit) function postReject () guiSetVisible(postWindow, false) showCursor(false) end addEvent("acceptDaJob", true) addEventHandler("acceptDaJob",root,postReject) function postAccept (thePlayer) triggerServerEvent("givePostJob", getLocalPlayer(), getLocalPlayer() ) end function showmarker (thePlayer) if (thePlayer == getLocalPlayer() ) then local randomNumber = math.random(#locations) daMarker = createMarker(locations [randomNumber] [1], locations [randomNumber] [2], locations [randomNumber] [3], "cylinder", 2, 255,0,0) daBlip = createBlipAttachedTo( daMarker, 41) addEventHandler("OnClientMarkerHit", daMarker, hitDaMarker) end end addEvent("startingJob", true) addEventHandler("startingJob",root,showmarker) function hitDaMarker (hitElement) if (hitElement == getLocalPlayer() ) then triggerServerEvent("playamarker", hitElement, hitElement) end end function destroydamarker (thePlayer) if (thePlayer == getLocalPlayer()) then if (isElement(daMarker)) then destroyElement(daMarker) destroyElement(daBlip) end end end addEvent("destroymarker",true) addEventHandler("destroymarker",root, destroydamarker) server.lua : local allowedVehicles = { [586] = true } function myjob (thePlayer) local postVehicle = createVehicle(586, 1948.318, -1674.251,13.546) warpPedIntoVehicle(thePlayer, postVehicle) triggerClientEvent("acceptDaJob",thePlayer, thePlayer ) triggerClientEvent("startingJob", thePlayer, thePlayer) end addEvent("givePostJob", true) addEventHandler("givePostJob", root, myjob) addEvent("playamarker", true) addEventHandler("playamarker",root, function (thePlayer) local vehicle = getPedOccupiedVehicle ( thePlayer ) if ( vehicle ) then if ( allowedVehicles [ getElementModel ( vehicle ) ] ) then if ( thePlayer == getVehicleOccupant ( vehicle, 0 ) ) then givePlayerMoney ( thePlayer, math.random ( 3000, 6000 ) ) end end end end ) everythin is fine in meta. also guys, i tried to learn by using runcodes and its fun, but some function doesnt work ( 1) cancelEvent("onPlayerDamage", duduRastaman)--- this doesnt work, and i get some errors that is hard to understand O_O 2)setElementAlpha(getPlayerFromName("duduRastaman", 0) -- this also doesnt work -- even when i use getPlayerFromNick codin is fun, only when ur code is workin Help me guys
×
×
  • Create New...