Jump to content

thomas479

Members
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

thomas479's Achievements

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody.

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody. (2/54)

0

Reputation

  1. I have got an question, again. I got the creating of an object working, but now I want to create if any other player then me tries to do the function, it will launch a rocket to kill him. But I get the error: Here is the code: localplayer = getLocalPlayer () source = getLocalPlayer () function pest (source, command, who) local targetPlayer = getPlayerFromName ( who ) if (source) == thomas479 then if ( targetPlayer ) then local x,y,z = getElementPosition (targetPlayer) local xp,yp,zp = getElementRotation ( targetPlayer ) createObject ( 970, x, y, z, xp, yp, 0 ) else (sourcePlayer) createProjectile ( localplayer, 20, 16, 16, 30, 1, (sourcePlayer), 0, 0, 0, 0, 0, 0, 20 ) end addCommandHandler ( "pest", pest ) I am hoping somebody can help me... Thomas
  2. Hello, At first my excuses for my poor English My problem is this: I am making for the first time a script, I want to get a object spawning near a player via a command. I have got it working but I could not get the rotation good. [lua] function pest (sourcePlayer, command, who) local targetPlayer = getPlayerFromName ( who ) if ( targetPlayer ) then local x,y,z = getElementPosition (targetPlayer) createObject ( 970, x+3, y+3, z, xp, yp, 0 ) end local xp,yp,zp = getElementRotation ( targetPlayer ) end addCommandHandler ( "pest", pest ) [/ lua] I am hoping it is clear what I mean, and somebody can help me! Thomas
×
×
  • Create New...