Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Cool on May 24, 2016, 01:22 PM

Title: name
Post by: Cool on May 24, 2016, 01:22 PM
i want to add something that no one can ban my name only
 if (player.Name == "Shit") Messageplayer ("this is shit",player)
but its not working any other method
i want no admin commands works on me if any one enter my in game id 0 message him this is shit how to do that
Title: Re: name
Post by: KAKAN on May 24, 2016, 01:36 PM
If( the_name == "shit" ) MessagePlayer("mc bc",player);
so, your script would look like:-
local bc = split(text," ");
if( bc[0].tolower() == "mc" ) MessagePlayer("Paki!",player);
Title: Re: name
Post by: Cool on May 24, 2016, 01:39 PM
so how i do what i want?? :-\
Title: Re: name
Post by: Stormeus on May 24, 2016, 02:07 PM
Did you actually read KAKAN's post?

You have the admin command. When it looks for the player to kick or whatever:
if (target.Name == "name") MessagePlayer("No", player);
else { /* kick */ }

Still, this is a pretty bad way of approaching the problem since a hacker could just join the server with your name and nobody would be able to kick him.
Title: Re: name
Post by: Cool on May 24, 2016, 02:13 PM
Quote from: Stormeus on May 24, 2016, 02:07 PMDid you actually read KAKAN's post?
yes he abuse pakistanis mc = its a bad word in our language what ever he done its his own thoughts
Thanks
Title: Re: name
Post by: Cool on May 24, 2016, 02:14 PM
Quote from: KAKAN on May 24, 2016, 01:36 PMIf( the_name == "shit" ) MessagePlayer("mc bc",player);
so, your script would look like:-
local bc = split(text," ");
if( bc[0].tolower() == "mc" ) MessagePlayer("Indian!",player);
hahahah