05.02.2012, 15:08
Hello samp, Im new here and will probally have some noob questions,
I have been reading this forum for a few days now and have not crossed this problem yet.
Sorry if this has been addressed elsewhere
The armor and health work great just not the shot gun.
the problem is when I place a weapon pickup the item just dont show.
When I go to where it should be it gives me the weapon.
here is my script
thanks
I have been reading this forum for a few days now and have not crossed this problem yet.
Sorry if this has been addressed elsewhere
The armor and health work great just not the shot gun.
the problem is when I place a weapon pickup the item just dont show.
When I go to where it should be it gives me the weapon.
here is my script
pawn Код:
#define FILTERSCRIPT
#include <a_samp>
new PICKUP_ARMOR;
new PICKUP_HEALTH;
new PICKUP_SHOTGUN;
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" PickUps Loaded");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnGameModeInit()
{
PICKUP_ARMOR = CreatePickup(1242, 2, 2471.8474,-1712.0262,13.5087, -1);// armor.
PICKUP_HEALTH = CreatePickup(1240, 2, 2468.9707,-1711.3811,13.5008, -1);// health
PICKUP_SHOTGUN = CreatePickup(27, 2, 2481.2029,-1703.9849,13.5285, -1);// SHOTGUN
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == PICKUP_HEALTH)
{
return 1;
}
if(pickupid == PICKUP_ARMOR)
{
return 1;
}
if(pickupid == PICKUP_SHOTGUN)
{
GameTextForPlayer(playerid, "~w~You Picked up the ShotGun", 5000, 5);
GivePlayerWeapon(playerid,27,500);
return 1;
}
return 1;
}
thanks