Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: [RRZ]_Genius on Apr 30, 2016, 08:33 AM

Title: Hello guyz please take a look
Post by: [RRZ]_Genius on Apr 30, 2016, 08:33 AM
Hello guyz i have an problem that i dont now how to script any server if i have any script like
Quoteelse if ( cmd == "ban" )
    {
 if ( status[ player.ID ].Level < 2 )  // Here you should put your function to take the level of the player.
 {
 MessagePlayer("[#FF0000]Permission Denied.", player );
 return;
 }
 else if ( !text ) MessagePlayer( "[#FF0000][Syntax] - /" + cmd + " <nick> <Reason>", player );
 else
  {
      local plr = GetPlayer( GetTok( text, " ", 1 ) );
      if ( !plr ) MessagePlayer("[#FF0000] Unknown ID/Name.", player );
      else
      {
              local reason = GetTok( text, " ", 2 NumTok( text, " " ) );
           if ( reason == null ) reason = "None";
           Ban( plr, player, reason );
      }
  }
 }
where i paste it in my vcmp server folder and by which app i could paste it and how it run
PLZ HELP ME I AM SUFFERING FROM THIS .
Or anyone plz give me a fulll scripted server and tell me how to run
Title: Re: Hello guyz please take a look
Post by: hotdogcat on Apr 30, 2016, 11:45 AM
Quote from: Talha on Apr 30, 2016, 08:33 AMOr anyone plz give me a fulll scripted server and tell me how to run

Not gonna happen...

Don't expect that copied and pasted scripts will work.
Title: Re: Hello guyz please take a look
Post by: [RRZ]_Genius on May 01, 2016, 06:34 AM
then what i do
Title: Re: Hello guyz please take a look
Post by: dEaN on May 01, 2016, 02:05 PM
Quote from: vito on May 01, 2016, 07:01 AM
Quote from: Talha on May 01, 2016, 06:34 AMthen what i do

It seems you need levelsystem there and functions GetTok and Ban... But I am sure you need to learn something about programming before.


yes he right! first you need level system add.. after try ban system