Slap System

Started by MRSK143, May 24, 2021, 11:12 AM

Previous topic - Next topic

MRSK143

I Made Simple Slap system ;D

Add This To Main.nut

else if ( cmd=="slap")
{
if(status[player.ID].AdminLevel >= 1)
{
 if (!text) MessagePlayer("[#db0000]Usage :[#FFFFFF] /slap <Name/ID>",player);
else
{
local plr = FindPlayer(text);
plr.Pos.z += 10;
Announce( "~y~Slapped!", player, 6 );
Message("[#db0000]Admin[#FFFFFF] "+player.Name+"[#db0000] has slapped [#FFFFFF]"+plr.Name+".");
}
}
}
@mR_Sk@

Mohamed Boubekri

You need to define this line:- if(status[player.ID].AdminLevel >= 1)
| What now ? | Not yet ! |
Morrocan:- [ 🇲🇦 ].

MRSK143

Quote from: We3da on May 25, 2021, 10:54 AMYou need to define this line:- if(status[player.ID].AdminLevel >= 1)

bro this line is for admin level for example 1 value is for moderator and 2 value is for admin
@mR_Sk@

Mohamed Boubekri

I meant to define it programmatically.
| What now ? | Not yet ! |
Morrocan:- [ 🇲🇦 ].

OreoT

Use "plr.Speed.z" instead of "plr.Pos.z". it will be more better, Good Work Keep it Up!

gta

Quote from: OreoT on Aug 25, 2021, 11:31 AMUse "plr.Speed.z" instead of "plr.Pos.z". it will be more better, Good Work Keep it Up!
Isn't this better than this shit https://forum.vc-mp.org/?topic=1197.msg8025#msg8025