• Welcome to Vice City Multiplayer.
 

Need some Scripts

Started by Mr_Duck, January 23, 2010, 09:50:38 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Mr_Duck

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

Boss

Quote from: Mr_Duck on January 23, 2010, 09:50:38 PM
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.

Quote from: Mr_Duck on January 23, 2010, 09:50:38 PM
Looking for a basic RPG script
There is one here. It is not exactly RPG, but a good thing to start with.

OKStyle

Quote from: Boss on January 23, 2010, 11:07:10 PM
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...

Quote from: Mr_Duck on January 23, 2010, 09:50:38 PM
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.

Quote from: Mr_Duck on January 23, 2010, 09:50:38 PM
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:
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;
}

Mr_Duck

Thank you,
Hope to get the sever up and running with this new script.