Help in Pickups!!
#1

Hi Actually I was Trying To Create Pickups But Its Not Loads I Mean When I Am Going To Picking Up this then nothing happenings help ?

PHP код:
public OnPlayerPickUpPickup(playeridpickupid)
{
if(
pickupid == pdeagle)
{
SendClientMessage(playeridCOLOR_WHITE"You Found Desert Eagle With Ammo!");
GivePlayerWeapon(playerid2430); // Give the player the money
}
if(
pickupid == psniper)
{
SendClientMessage(playeridCOLOR_WHITE"You Found Sniper With Ammo.");
GivePlayerWeapon(playerid3420); // Give the player the money
}
if(
pickupid == pgrenade)
{
SendClientMessage(playeridCOLOR_WHITE"You Found Some Grenades");
GivePlayerWeapon(playerid165); // Give the player the money
}
if(
pickupid == pshotgun)
{
SendClientMessage(playeridCOLOR_WHITE"You Found Shotgun with Ammo");
GivePlayerWeapon(playerid2720); // Give the player the money
}
if(
pickupid == procket)
{
SendClientMessage(playeridCOLOR_WHITE"You Found Rocket Launcher");
GivePlayerWeapon(playerid355); // Give the player the money
}
if(
pickupid == pmolotiv)
{
SendClientMessage(playeridCOLOR_WHITE"You Found Molotov Cocktail");
GivePlayerWeapon(playerid185); // Give the player the money
}
if(
pickupid == p9mm)
{
SendClientMessage(playeridCOLOR_WHITE"You Found 9mm");
GivePlayerWeapon(playerid2230); // Give the player the money
}
if(
pickupid == pm4)
{
SendClientMessage(playeridCOLOR_WHITE"You Found M4");
GivePlayerWeapon(playerid3130); // Give the player the money
}
if(
pickupid == pheat)
{
SendClientMessage(playeridCOLOR_WHITE"You Found HeatSeeker");
GivePlayerWeapon(playerid365); // Give the player the money
}
if(
pickupid == pmini)
{
SendClientMessage(playeridCOLOR_WHITE"You Found Minigun");
GivePlayerWeapon(playerid38120); // Give the player the money
}
if(
pickupid == pbomb)
{
SendClientMessage(playeridCOLOR_WHITE"You Found SatChel Charge");
GivePlayerWeapon(playerid395); // Give the player the money
}
if(
pickupid == pnight)
{
SendClientMessage(playeridCOLOR_WHITE"You Found Night Vis");
GivePlayerWeapon(playerid441); // Give the player the money
}
if(
pickupid == pthermal)
{
SendClientMessage(playeridCOLOR_WHITE"You Found Thermal Goggles");
GivePlayerWeapon(playerid451); // Give the player the money
}
if(
pickupid == premote)
{
SendClientMessage(playeridCOLOR_WHITE"You Found Detonator");
GivePlayerWeapon(playerid401); // Give the player the money
}
if(
pickupid == pflame)
{
SendClientMessage(playeridCOLOR_WHITE"You Found Flame Thrower");
GivePlayerWeapon(playerid37120); // Give the player the money
}
if(
pickupid == psilence)
{
SendClientMessage(playeridCOLOR_WHITE"You Found Silenced 9mm");
GivePlayerWeapon(playerid2320); // Give the player the money
}
if(
pickupid == ptear)
{
SendClientMessage(playeridCOLOR_WHITE"You Found Tear Gas");
GivePlayerWeapon(playerid175); // Give the player the money
}
if(
pickupid == pmicro5)
{
SendClientMessage(playeridCOLOR_WHITE"You Found Micro SMG");
GivePlayerWeapon(playerid2850); // Give the player the money
}
if(
pickupid == pmp5)
{
SendClientMessage(playeridCOLOR_WHITE"You Found MP5");
GivePlayerWeapon(playerid2935); // Give the player the money
}
if(
pickupid == pak47)
{
SendClientMessage(playeridCOLOR_WHITE"You Found AK-47");
GivePlayerWeapon(playerid3040); // Give the player the money
}
if(
pickupid == prifle)
{
SendClientMessage(playeridCOLOR_WHITE"You Found Country Rifle");
GivePlayerWeapon(playerid3330); // Give the player the money
}
if(
pickupid == ptec9)
{
SendClientMessage(playeridCOLOR_WHITE"You Found Tec-9");
GivePlayerWeapon(playerid3250); // Give the player the money
}
if(
pickupid == pchest)
{
SendClientMessage(playeridCOLOR_WHITE"You Found 5,000 $ Cash");
GivePlayerMoney(playerid5000); // Give the player the money
}
if(
pickupid == pchest1)
{
SendClientMessage(playeridCOLOR_WHITE"You Found 10,000 $ Cash");
GivePlayerMoney(playerid5000); // Give the player the money
}
if(
pickupid == psawnoff)
{
SendClientMessage(playeridCOLOR_WHITE"You Found Sawn Off Shotgun");
GivePlayerWeapon(playerid2620); // Give the player the money
}
if(
pickupid == phpm)
SendClientMessage(playeridCOLOR_WHITE"You Found Health Pack 200 HP");
SetPlayerHealth(playerid200);
return 
1;

its also define and i added save possitions in the ongamemodeinit like this
*( pgrenade = CreatePickup(19832,3,-6.7468,2353.9668,24.1406, 92); )
Reply


Messages In This Thread
Help in Pickups!! - by RJTabish - 11.08.2018, 19:10
Re: Help in Pickups!! - by KinderClans - 11.08.2018, 19:29
Re: Help in Pickups!! - by RJTabish - 11.08.2018, 19:34
Re: Help in Pickups!! - by KinderClans - 11.08.2018, 19:40
Re: Help in Pickups!! - by RJTabish - 11.08.2018, 19:44
Re: Help in Pickups!! - by KinderClans - 11.08.2018, 19:46
Re: Help in Pickups!! - by Sew_Sumi - 11.08.2018, 21:16
Re: Help in Pickups!! - by RJTabish - 12.08.2018, 19:26
Re: Help in Pickups!! - by 3417512908 - 14.08.2018, 09:41

Forum Jump:


Users browsing this thread: 1 Guest(s)