Author Topic: Need some Scripts  (Read 2862 times)

0 Members and 1 Guest are viewing this topic.

Offline Mr_Duck

  • Street Thug
  • *
  • Posts: 9
    • View Profile
Need some Scripts
« on: January 24, 2010, 12:50:38 am »
Looking for some /c Scripts if possible or !Command.
I am looking to check a command that can place and take away a object in game done by a Player Class.
 For example class 1 can type /c Gate or !Gate and a gate will go away or Come back where it was scripted in on the sever config.

Also am looking for a !Taze ID or /c taze ID  which again can only be done by PlayerClass 1 and would do the same as Slapping the player or freezing him. Also would like it to set the players weapons to Fist and nothing else so if a player has a M4 a Cop can taze him and his guns will go away and be slapped.

Be great for your guys help.

Looking for a basic RPG script
« Last Edit: February 08, 2010, 01:23:19 pm by Boss »

Offline Boss

  • VC:MP Beta Tester (inactive)
  • Made Man
  • *
  • Posts: 229
  • Boss
    • View Profile
    • TDH Clan Site
Re: Need some Scripts
« Reply #1 on: January 24, 2010, 02:07:10 am »
Looking for some /c Scripts if possible or !Command.
The usage of these commands is shown in the default mode (mode.pwn) located in your server's "gamemodes" folder.

Looking for a basic RPG script
There is one here. It is not exactly RPG, but a good thing to start with.

Offline OKStyle

  • Street Thug
  • *
  • Posts: 8
    • View Profile
Re: Need some Scripts
« Reply #2 on: January 24, 2010, 09:10:29 am »
The usage of these commands is shown in the default mode (mode.pwn) located in your server's "gamemodes" folder.
Not sure... He asks the concrete commands...

place and take away a object in game done by a Player Class.
For example class 1 can type /c Gate or !Gate and a gate will go away or Come back.
You want that gates moves? Create team by classes and check it in moved command.

Also am looking for a !Taze ID or /c taze ID  which again can only be done by PlayerClass 1 and would do the same as Slapping the player or freezing him. Also would like it to set the players weapons to Fist and nothing else so if a player has a M4 a Cop can taze him and his guns will go away and be slapped.
Smth like this:
Code: [Select]
if(!strcmp(cmd,"taze",true))
{
 new tmp[30];
 tmp = strtok(cmdtext,idx);
 new otherplayer = strval(tmp);
 if(IsPlayerConnected(otherplayer))
 {
  RemovePlayerWeapons(otherplayer);
  SendClientMesage(otherplayer,0xFF0000AA,"You have slaped!");
 }
 else { SendClientMessage(playerid,0xFF0000AA,"Invalid player ID."); }
return 1;
}

Offline Mr_Duck

  • Street Thug
  • *
  • Posts: 9
    • View Profile
Re: Need some Scripts
« Reply #3 on: January 26, 2010, 04:33:02 pm »
Thank you,
Hope to get the sever up and running with this new script.