Jump to content

[DKR]silverfang

Members
  • Posts

    88
  • Joined

  • Last visited

Everything posted by [DKR]silverfang

  1. I keep getting an error for the executeSQLDelete() when I try and call this script (nil value if I remember) function deleteRecord (thePlayer, command, name) selectedPlayer = getPlayerFromNick(name) if (selectedPlayer) then result = executeSQLSelect ( "ClassTable", "player, class, IP", "player = '"..name.."'" ) if (not result) then outputChatBox("Cannot find a record for this user in the Database.", thePlayer) else outputChatBox("Deleted Data Nick:"..result[1][1].." Class: "..result[1][2].." IP: "..result[1][3], thePlayer) excuteSQLDelete("ClassTable", "player = '"..name.."'" ) end else outputChatBox("Cannot find player, please check spelling and try again", thePlayer) end end addCommandHandler("userdelete", deleteRecord, true, false) EDIT: Oh and I've setup the table here connect = executeSQLCreateTable ( "ClassTable", "player TEXT, class TEXT, IP TEXT" ) if (connect == false) then outputChatBox("Could not connect to DB") end
  2. Does anyone have the addition for the MTA functions?
  3. But wont that still be the person who typed the command?
  4. No that's just how to get the player from the name, not what I was asking, I have already used that function, I need to force the player - that is returned from that function - so that the client script is active for them. Tell me if I'm not making much sense.
  5. Right I want to force a player as the client for a script, The script is a rules and FAQ window that shows when a player joins the server, with two buttons, "accept" and "decline" if accept is pressed then access to the server is granted, if decline is pressed then they are kicked from the server, displaying a message to server. I want to add a function that when a staff member types "rules " in the console then the player will be shown the window again, but I don't know how to make it so that the 'targetPlayer' is the client. Cheers in advance.
  6. Thanks i think that's just what I need. As for the players name visible on the map, i'm talking about the freeroam map.
  7. as regards to the playerblips its only for certain players that i want the blips to disapear, so if u set namtag invisible then it wont show on the map?
  8. Is it possible to hide a player's blip and name from the map - or make it invisible to other players? If so could someone please tell me how, I've looked through the wiki but can't work out a way to do it. cheers in advance.
  9. Right my problem is that i can't get this resource to kick the player, its a client script for a gui and when a button is pressed it kicks the player, localPlayer is declared at the beggining of the script as localPlayer = getLocalPlayer() the resource is given admin rights in the acl and the function below is called but it doesn't kick the player function kick_player() outputConsole("Button pressed") kickPlayer ( localPlayer ) end please help i dunno what to do it should work and i am very frustrated.
  10. Don't worry about it I have written around it thanks for trying
  11. Ah, what do you mean about the page file?
  12. I have written a script that makes number plates when you spawn cars, based on their status - guest, member, mod, admin, VIP.- i was wondering if it was possible to change the number plate while in a car, if so could you please tell me thanks. Silverfang
×
×
  • Create New...