Jump to content

mta.slap


RA

Recommended Posts

Posted

I have been trying to get mta.slap working with mtama and it doesn't work.

The command runs and says ** Admin slaps Racer OUT OF BOUNDS at Portland-View Portland. However, the player doesn't get hurt at all.

What is up?

Running GTA3

Posted

Oli: Ok, I'll try it. But why in the world would mta.say actually hurt someone just because there is a /slap in the message ?

Posted

Because if you do /slap from remote admin and a name it will slap a player. It needs to say /slap in order for it to work. You wont see the /slap message.

Posted

because when you're talking from the admin bit in mtama and you say /slap it slaps them, and mta.say just does the same thing

Posted

this is my slap script

if ($3 == !slap) {
       %b = $iif($4 isnum,$4,$mta.getid($1,$4))
       /mta.slap $1 %b
     }

this is my kill script

if ($3 == !kill) {
       %b = $iif($4 isnum,$4,$mta.getid($1,$4))
       /mta.slap $1 %b
       /mta.slap $1 %b
       /mta.slap $1 %b
       /mta.slap $1 %b
       /mta.slap $1 %b
     }

Posted

look in mta.mrc for alias mta.slap

ull notice all it does is: mta.say $1 /slap $chr(35) $+ $2

where $chr(35) is the ascii number for the symbol #

and if u do in the admin console: /slap #2 itll slap player id 2 in the server

Posted

Just another MTA bug:

/mta.slap will display and takes 20% health of the player

/mta.slap will display and does not take 20% health of the player

  • 5 months later...
Posted

Sorry for awakening this old dead topic..

I'd just like to request that someone could check this script. I tried to use it but with no sucess.

I'll appreciate to have those commands working.

Oli, you might consider to include those commands in next version of GRS.

Thanks.

this is my slap script

if ($3 == !slap) {
       %b = $iif($4 isnum,$4,$mta.getid($1,$4))
       /mta.slap $1 %b
     }

this is my kill script

if ($3 == !kill) {
       %b = $iif($4 isnum,$4,$mta.getid($1,$4))
       /mta.slap $1 %b
       /mta.slap $1 %b
       /mta.slap $1 %b
       /mta.slap $1 %b
       /mta.slap $1 %b
     }

Posted
 %b = $iif($4,$iif($mta.name($1,$4) != Unknown),$4,$mta.getid($1,$4)),$2)
 if ($3 == !kill) !.timer 5 0 mta.slap $1 %b

Posted

The !slap script will never be added to GRS due to my own reasons. If you want 1 then make your own.

Locked.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...