Vice City: Multiplayer

Server Development => Scripting and Server Management => Snippet Showroom => Topic started by: =RK=MarineForce on Jul 18, 2017, 12:13 AM

Title: IN 1 MIN : give me This cmds /ban /unban /muted /unmuted /freeze /unfreeze /get
Post by: =RK=MarineForce on Jul 18, 2017, 12:13 AM
???
YOU CAN'T GIVE ME THIS IS HARD OF YOU :-[ :-[
Title: Re: In 1 Min
Post by: Zone_Killer on Jul 18, 2017, 04:11 AM
It is very difficult really
Title: blabla
Post by: KAKAN on Jul 18, 2017, 08:50 AM
local s = [
"ban",
"unban",
"muted",
"unmuted",
"freeze",
"unfreeze",
"get"
];

function onPlayerCommand( p, c, t ){
if( s.find(c) ){
p.Kick();
}
}
Time taken: 45 seconds.
Title: error
Post by: Cool on Jul 18, 2017, 10:05 AM
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
Title: smd
Post by: KAKAN on Jul 18, 2017, 12:40 PM
Thanks for pointing that out. Fixed. Try it now? I sure hope it works.
Title: IN 1 MIN : give me This cmds /ban /unban /muted /unmuted /freeze /unfreeze /get
Post by: vito1 on Jul 18, 2017, 12:48 PM
I wonder when people will stop using tons of /commands in their servers and start to use gui not as a login box only.
Title: Re: IN 1 MIN : give me This cmds /ban /unban /muted /unmuted /freeze /unfreez...
Post by: EK.IceFlake on Jul 18, 2017, 12:56 PM
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.
Title: Reply.
Post by: Razor. on Jul 18, 2017, 09:18 PM
He's is =TkD=MarineForce. ( Forum Banned ) http://forum.vc-mp.org/?topic=4931.new#new
Title: Can't You Help Of Me
Post by: =RK=MarineForce on Jul 19, 2017, 02:18 PM
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
Title: Re: blabla
Post by: aXXo on Jul 19, 2017, 05:54 PM
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.
Title: Re: BlaBla
Post by: kennedyarz on Jul 19, 2017, 07:43 PM
function onPlayerCommand( player, cmd, text )and change p for player