#5

So it shouls looks like this?:

pawn Код:
#include <a_samp>

#define FILTERSCRIPT

#define COLOR_ORANGERED 0xFF4500AA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_CRIMSON 0xDC143CAA
#define TEAM_ARMY 1

#pragma tabsize 0

//Pickup's
new HealthPickup;
new ArmourPickup;
new MinigunPickup;
new GrenadePickup;


public OnFilterScriptInit()
{
    //Pickup
    HealthPickup = CreatePickup(1240, 23, 960.9189453125,2102.4846191406,1011.0274047852); //Health
    ArmourPickup = CreatePickup(1242, 23, 963.43518066406,2102.4033203125,1011.0276489258); //Armour
    MinigunPickup = CreatePickup(362, 23, 958.79949951172,2097.1181640625,1011.0217895508); //Minigun
    GrenadePickup = CreatePickup(342, 23, 932.59777832031,2103.7470703125,1010.4979248047); //Grenade
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(gTeam[playerid] == TEAM_ARMY)
{
//Health~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    if( pickupid == HealthPickup){
      SetPlayerHealth(playerid, 100);
      SendClientMessage(playerid,COLOR_ORANGERED,"You picked up Health!");
        }
        else return SendClientMessage(playerid,COLOR_TOMATO,"This Health restore is just for ARMY!");
    }
//Armour~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    if( pickupid == ArmourPickup){
      SetPlayerArmour(playerid, 100);
      SendClientMessage(playerid,COLOR_GREY,"You picked up Armour!");
        }
        else return SendClientMessage(playerid,COLOR_TOMATO,"This Armour restore is just for ARMY!");
    }
//Minigun~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    if( pickupid == MinigunPickup){
      GivePlayerWeapon(playerid, 38, 99999);
      SendClientMessage(playerid,COLOR_CRIMSON,"You picked up a Minigun!");
        }
        else return SendClientMessage(playerid,COLOR_TOMATO,"This Minigun is just for ARMY!");
    }
//Grenade~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    if( pickupid == GrenadePickup){
      GivePlayerWeapon(playerid, 16, 99999);
      SendClientMessage(playerid,COLOR_CRIMSON,"You picked up a Grenade!");
        }
        else return SendClientMessage(playerid,COLOR_TOMATO,"This Grenade is just for ARMY!");
    }
    return 0;
}
BTW it get 4 Errors
pawn Код:
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\ForARMY.pwn(31) : error 017: undefined symbol "gTeam"
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\ForARMY.pwn(31) : warning 215: expression has no effect
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\ForARMY.pwn(31) : error 001: expected token: ";", but found "]"
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\ForARMY.pwn(31) : error 029: invalid expression, assumed zero
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\ForARMY.pwn(31) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Reply


Messages In This Thread
ARMY - by Larsey123IsMe - 08.11.2010, 12:46
Re: ARMY - by DaneAMattie - 08.11.2010, 12:52
Re: ARMY - by Larsey123IsMe - 08.11.2010, 13:01
Re: ARMY - by DaneAMattie - 08.11.2010, 13:09
Re: ARMY - by Larsey123IsMe - 08.11.2010, 13:44
Re: ARMY - by ColdXX - 08.11.2010, 13:49
Re: ARMY - by Larsey123IsMe - 08.11.2010, 13:56
Re: ARMY - by ColdXX - 08.11.2010, 14:25
Re: ARMY - by Larsey123IsMe - 08.11.2010, 14:31
Re: ARMY - by ColdXX - 08.11.2010, 14:43

Forum Jump:


Users browsing this thread: 2 Guest(s)