Jump to content

#meS

Members
  • Posts

    70
  • Joined

  • Last visited

Everything posted by #meS

  1. #meS

    GUI msg

    hello i made gui message but not working.. debug:attempt to concatenat local 'choosedPlayer' (a nil value) code: client msgGRID = guiCreateGridList(102, 40, 182, 89, false, PHONE.staticimage[1]) msgLabel = guiCreateLabel(102, 134, 182, 22, "Message:", false, PHONE.staticimage[1]) guiSetFont(msgLabel, "default-bold-small") guiLabelSetColor(msgLabel, 255, 0, 0) guiLabelSetHorizontalAlign(msgLabel, "center", false) guiLabelSetVerticalAlign(msgLabel, "center") msgText = guiCreateEdit(102, 160, 182, 173, "", false, PHONE.staticimage[1]) msgSend = guiCreateButton(102, 339, 182, 30, "Send!", false, PHONE.staticimage[1]) guiSetFont(msgSend, "default-bold-small") guiSetProperty(msgSend, "NormalTextColour", "FF1AEF0F") guiSetVisible(msgGRID,false) guiSetVisible(msgLabel,false) guiSetVisible(msgText,false) guiSetVisible(msgSend,false) function openMSG() if source == PHONE.staticimage[5] then guiSetVisible(msgGRID,true) guiSetVisible(msgLabel,true) guiSetVisible(msgText,true) guiSetVisible(msgSend,true) guiSetVisible(PHONE.staticimage[2],false) guiSetVisible(PHONE.staticimage[3],false) guiSetVisible(PHONE.staticimage[4],false) guiSetVisible(PHONE.staticimage[5],false) guiSetVisible(PHONE.staticimage[6],false) end end addEventHandler("onClientGUIClick",root,openMSG) function trigMSG() local msgPMText = guiGetText(msgText) local selectedRow, selectedColumn = guiGridListGetSelectedItem(msgGRID) local choosedPlayer = getPlayerFromName(guiGridListGetItemText(msgGRID, selectedRow, selectedColumn)) if source == msgSend then triggerServerEvent("onMessagePM",lp,msgPMText,choosedPlayer) end end addEventHandler("onClientGUIClick",root,trigMSG) function addXXXX() local column = guiGridListAddColumn( msgGRID, "Player", 0.85 ) if ( column ) then for id, playeritem in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( msgGRID ) guiGridListSetItemText ( msgGRID, row, column, getPlayerName ( playeritem ), false, false ) end end end addEventHandler ( "onClientResourceStart", resourceRoot, addXXXX ) server pmlimit = 5 function privmsgplayer(source, command, choosedPlayer,msgPMText, ...) if choosedPlayer then if getPlayerFromName(choosedPlayer) then if getElementData(source, sentpm) then outputChatBox("[PM-AntiSpam] Sorry, please wait to send another message.", source) return false end setElementData(source, sentpm, true) local pmtimer = pmlimit * 1000 or 5000 setTimer(removeElementData(source, sentpm), pmtimer, 1) outputChatBox("[PM] PM to " .. choosedPlayer .. ": " .. msgPMText, source, 255, 0, 0, false) outputChatBox("[PM] PM from " .. getPlayerName(source) .. ": " .. msgPMText, getPlayerFromName(choosedPlayer), 255, 215, 0, false) else outputChatBox("[PM] Invalid syntax. try /pm ", source, 255, 0, 0, false) end else outputChatBox("[PM] The player specified does not exist in this server ("..choosedPlayer..").", source, 255, 0, 0, false) return false end end addEvent("onMessagePM",true) addEventHandler("onMessagePM",root,privmsgplayer)
  2. Your server details has been sent to your email. thank you! but server doesn't start have a look please!
  3. Username: meS Your name(Full and last name): mark don Why do you want free MTA Server?: I want a free server cuz i don't have money to buy a host i scripted for months so I can make a server but life is hard u know Server Slots: 100-80 Your Skype: don't have one but I'll edit it when I make it! Your Email: [email protected]
  4. hello made i use your scripts but when i reconnect to my server it warps me to ground !!! wtf!!!
  5. #meS

    cancel death

    you can't cancel the event onClientPlayerWasted, you could try to do some checks in onClientPlayerDamage to see if player will dead with the damage and then cancel this event, make the player invincible and apply the animation to him. thank you! i made it. but it doesn't set the animation (i used trigger so players can see it)
  6. #meS

    cancel death

    no, (server side) thank you i tried to cancel player death but not working.
  7. #meS

    cancel death

    Ok thank you but if I set the animation on client side will players be able to see it?
  8. #meS

    cancel death

    hello is there a way to cancel player death and then set animation for him?
  9. #meS

    a question

    Yes. thank you.
  10. #meS

    a question

    hello i'm asking if i made marker in client side will players be able to see it?
  11. hello how to remove the command /login?
  12. now it's not working at all -_________-
  13. hello i made when play die it shows screen but it shows for every body!!! code: function setDeathSpawn() guiSetVisible(SPAWN.window[1],true) showCursor(true) end addEventHandler("onClientPlayerWasted",root,setDeathSpawn)
  14. tell me... did some one buy a script from you?
  15. Hello how to play sound for all players? I know playSound but not working. Thanks in advance.
  16. hello my friend got a script idk from where he send me this: it's really really cool does any body know where to download it from? look in back
  17. #meS

    Help background

    Hello I'm using Hungry's CnR mode viewtopic.php?f=108&t=89777 i want to know how to do that background??? It's like ffs how to do it? Please help..
  18. #meS

    not team kill

    No need event ??
  19. #meS

    not team kill

    i'm noob hello how to make that you can't kill your teammates if you're in GERMAN Team?
  20. #meS

    RestartResource

    ok ok i want if the a resource with name gamemode restarted then i want it to set the player data joiner and the other things look but it doesn't work Code: lp = getLocalPlayer() function resman() local res = getResourceFromName ( "gamemode" ) if getElementData(lp,"logon") == true then guiSetVisible(GUImain.window[1],true) setElementData(lp,"joiner",true) showCursor ( true ) end end addEventHandler("onClientResourceStart",res,resman)
×
×
  • Create New...