Hello guyz please take a look

Started by [RRZ]_Genius, Apr 30, 2016, 08:33 AM

Previous topic - Next topic

[RRZ]_Genius

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

Rise To Distinction - Join Revolver Rivalz

hotdogcat

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.


Credits to Bart.

[RRZ]_Genius


Rise To Distinction - Join Revolver Rivalz

dEaN

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
I think first impressions are important when i pick up a Main.nut script and I'm sticking to the script, I'm putting that organic feeling back in the game.
-Since 2012-