IN 1 MIN : give me This cmds /ban /unban /muted /unmuted /freeze /unfreeze /get

Started by =RK=MarineForce, Jul 18, 2017, 12:13 AM

Previous topic - Next topic

Zone_Killer

It is very difficult really
Bohemia Is God Of Punjabi Rap
Yo Yo Honey Singh tou chutiya hai

KAKAN

#2
local s = [
"ban",
"unban",
"muted",
"unmuted",
"freeze",
"unfreeze",
"get"
];

function onPlayerCommand( p, c, t ){
if( s.find(c) ){
p.Kick();
}
}
Time taken: 45 seconds.
oh no

Cool

AN ERROR HAS OCCURED [the index 'player' does not exist]

CALLSTACK
*FUNCTION [onPlayerCommand()] scripts/main.nut line [13]

LOCALS
[s] ARRAY
[t] NULL
[c] "freeze"
[p] INSTANCE
[this] TABLE
Plzzzzz helppppp

KAKAN

Thanks for pointing that out. Fixed. Try it now? I sure hope it works.
oh no

vito1

I wonder when people will stop using tons of /commands in their servers and start to use gui not as a login box only.

EK.IceFlake

Quote from: vito1 on Jul 18, 2017, 12:48 PMI wonder when people will stop using tons of /commands in their servers and start to use gui not as a login box only.
When my client-side library gets released.

Razor.

He's is =TkD=MarineForce. ( Forum Banned ) http://forum.vc-mp.org/?topic=4931.new#new

=RK=MarineForce

What IS This You can't give this admin cmds 

CAN'T YOU HELP OF ME

Re: IN 1 MIN : give me This cmds /ban /unban /muted /unmuted /freeze /unfreeze /get

aXXo

Quote from: KAKAN on Jul 18, 2017, 08:50 AMlocal s = [
"ban",
"unban",
"muted",
"unmuted",
"freeze",
"unfreeze",
"get"
];

function onPlayerCommand( p, c, t ){
if( s.find(c) ){
p.Kick();
}
}
Time taken: 45 seconds.
thnx, worked for me.

kennedyarz

function onPlayerCommand( player, cmd, text )and change p for player