Jump to content

CowTurbo

Members
  • Content Count

    385
  • Joined

  • Last visited

Everything posted by CowTurbo

  1. http://community.mtasa.com/index.php?p= ... ls&id=2338 seems like its not her script.
  2. Shit happens Respect - 50% ProDMRac3r function removeRespect () if ( getPlayerRespect ( getPlayerFromName("ProDMRac3r"))) then local respect = getPlayerRespect ( getPlayerFromName("ProDMRac3r")) local newRespect = respect-50 setPlayerRespect ( getPlayerFromname("ProDMRac3r"), newRespect ) outputChatBox ( "ProDMRac3r Respect is now 20%!", getRootElement(), 255,0,0 ) end end
  3. No problem EDIT: LOL Jaysds1 .................
  4. -- Client side -- -- Creates the admin window -- function createAdminControlWindow() showCursor(true) local X = 0.375 local Y = 0.375 local Width = 0.55 local Height = 0.55 wdwAdminControl = guiCreateWindow(X, Y, Width, Height, "Admin Control Window", true) X = 0.0800 Y = 0.10 Width = 0.15 Height = 0.08 guiCreateLabel(X, Y, Width, Height, "Player Options:", true, wdwAdminControl) -- Find Player Position -- X = 0.750 Y = 0.10 playerPositionButton = guiCreateButton(X, Y, Width, Height, "Get Player Pos", tru
  5. I have already created that resource for my server. If you need some help, ask me. I am using command with /attach blabla.. so you can attach all objects in GTA. I need to create one ID list of objects, but... Im lazy. Good luck with it.
  6. It saves unlimited vehicles. I can create spawn thing ( was in my player menu ) I Show with turnig.
  7. I can accept that i hope Thx for PMing, wasnt see that u posted. add me MSN, i send PM.
  8. CowTurbo

    showGui

    userPanelWindow = guiCreateWindow(380,277,290,82,"Player Cash",false) Money_lab = guiCreateLabel(17,32,46,24,"Money :",false,playerMoneyLabel) guiLabelSetColor(Money_lab,0,255,0) playerMoneyLabel = guiCreateLabel(75,33,199,18,"\"\"",false,playerMoneyLabel) guiLabelSetColor(money_lab2,255,0,0) guiSetVisible ( userPanelWindow, false ) function onresourceStart () bindkey ("F7", "down", showUserPanelWindow) outputChatBox("Resource Cash System Started, Press F1 To open GUI.",0,255,0) outputChatBox("Author: Klesh",0,255,0) end addEventHandler("onClientResourceStart", getResourceR
  9. lol, cast was trying to make him learn ,.. but, yeah, doesnt matter
  10. local myMarkers = {} myMarkers[1] = createMarker( 2313.6872558594, -1221.4028320313, 22.098985671997, 'cylinder', 5.0, 255, 0, 0, 150 ) puerta = createObject (3000,2313.6872558594, -1221.4028320313, 23.098985671997, 0, 0, 90) function MarkerHit( hitElement, matchingDimension ) for index,markers in pairs(myMarkers) do if (source == markers) then if ( getElementModel ( hitElement ) == 217 ) then moveObject (puerta,3000,2313.6872558594, -1221.4028320313, 23.098985671997, 0, 0, 90) else outputChatBox ( "* ERROR: Your skin isnt 217!", hitElement, 255,0,0 ) end e
  11. i can sell you gang system or vehicle shop, not rly expensive, contact me if you want.
  12. CowTurbo

    Problems

    cost = 10000 local paynspray = { } local payNSprayCol = { } local sensitiveMark = { } client = getLocalPlayer() function paynsprayLoad ( res ) local paynsprayElements = getElementsByType ( "paynspray", getResourceRootElement(res) ) for k,v in ipairs(paynsprayElements) do local num = #paynspray+1 paynspray[num] = { } paynspray[num].Name = getElementData( v, "name" ) paynspray[num].PosX = tonumber( getElementData( v, "posX" ) ) paynspray[num].PosY = tonumber( getElementData( v, "posY" ) ) paynspray[num].PosZ = tonumber( getE
  13. keyPresser is player argument, was you know that ? Try to do add something like function onPlayerJoinBind () bindKey ( source, "l", "down", VehicleLights ) end addEventHandler ( "onPlayerJoin", getRootElement(), onPlayerJoinBind ) function onResourceStartBind () for i,v in ipairs ( getElementsByType("player")) do bindKey ( v, "l", "down", VehicleLights ) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), onResourceStartBind ) EDIT: someone was before me.. EDIT2: Why you guys unbinding key on start?
  14. CowTurbo

    UTF-8

    Missing äöüõ letters They are realy needed when making estonian language server... MTA 1.1 come fast =)
  15. Yeah, was copy paste Fixed, thx
  16. server side functions you can use for all players, lets chose event bindKey. In server side, you can do this function onJoin ( ) bindKey ( source, "N", "down", functionName ) end addEventHandler ( "onPlayerJoin", getRootElement(), onJoin ) So, this will bind N key for some function, when player joins. If you are using client side , then you dont need to add player argument, because its only for one player, who's using client side ( everyone can use ...) function onJoin ( ) bindKey ( "N", "down", functionName ) end addEventHandler ( "onClientResourceStart", getRoot
  17. was team color or nametag color red for player?
×
×
  • Create New...