Author Topic: HELP!  (Read 3063 times)

0 Members and 1 Guest are viewing this topic.

Offline AcTiOnLiFe

  • Street Thug
  • *
  • Posts: 8
  • |-|ActionLife|-|
    • View Profile
HELP!
« on: September 11, 2011, 06:48:51 pm »
Help Anti Armour Pawn

for gups

Help How Create Colores For Pawno Script

Thnks
« Last Edit: September 11, 2011, 08:02:50 pm by AcTiOnLiFe »

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: HELP!
« Reply #1 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 the forums before asking.
I'm beginning to feel like a Lag God, Lag God

yazeen

  • Guest
Re: HELP!
« Reply #2 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]

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: HELP!
« Reply #3 on: September 13, 2011, 04:52:36 am »
oh.. I did not test the script.
I'm beginning to feel like a Lag God, Lag God

Offline AcTiOnLiFe

  • Street Thug
  • *
  • Posts: 8
  • |-|ActionLife|-|
    • View Profile
Re: HELP!
« Reply #4 on: September 13, 2011, 01:46:16 pm »
Thanks