Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: AcTiOnLiFe on September 11, 2011, 06:48:51 pm

Title: HELP!
Post by: AcTiOnLiFe on September 11, 2011, 06:48:51 pm
Help Anti Armour Pawn

for gups

Help How Create Colores For Pawno Script

Thnks
Title: Re: HELP!
Post by: Fuzzy168 on September 12, 2011, 05:28:45 am
For Colours =

#define 0xcolour you desire
Quote from: stormeus
You can use this color picker to make colors:
http://www.developingwebs.net/tools/color.php


For Anti Armour.. Its easy.

Add this to the bottom of the script.
[pawn]public Anti-Armour(playerid);
{
   GetPlayerArmour(playerid, >1);
   SendClientMessage(playerid, Color_Green, "Armours are forbidden in this server");
   Kick(playerid);
   return 1;
}[/pawn]

Armour and Health Anti-Hacks are easy to make. And next time,  search (http://forum.vicecitymultiplayer.com/index.php?action=search;params=eJwtjUEKAjEMRe_ixs1fNIk4eprSaQOj1Kl0qiL08KYym-T9F_gJ6R3WqKkfu-uHPtdBEwRnsMMFZPsKnsACOoEMGGLswHYlkIAJ4iA22Sq2pXx8LI9n1qZWNtRrvmtsvqz5u5tSm1HVrP__u_LpVk0n3eIwGmpcLP8Atb81lw..) the forums before asking.
Title: Re: HELP!
Post by: yazeen on September 12, 2011, 08:05:11 am
lol failed fuzzy.

[pawn]public Anti-Armour(playerid);
{
   GetPlayerArmour(playerid, >1);
   SendClientMessage(playerid, Color_Green, "Armours are forbidden in this server");
   Kick(playerid);
   return 1;
}[/pawn]

[pawn]GetPlayerArmour(playerid, >1);[/pawn]  wont doesn't work like this. It should be something like this [pawn]if(GetPlayerArmour(playerid) >0) { [/pawn] so the overall script should be something like;

[pawn]public Anti-Armour(playerid);
{
   if(GetPlayerArmour(playerid) >0) {
   SendClientMessage(playerid, Color_Green, "Armours are forbidden in this server");
   Kick(playerid);
       }
   return 1;
}[/pawn]
Title: Re: HELP!
Post by: Fuzzy168 on September 13, 2011, 04:52:36 am
oh.. I did not test the script.
Title: Re: HELP!
Post by: AcTiOnLiFe on September 13, 2011, 01:46:16 pm
Thanks