11.08.2018, 19:10
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 ?
its also define and i added save possitions in the ongamemodeinit like this
*( pgrenade = CreatePickup(19832,3,-6.7468,2353.9668,24.1406, 92); )
PHP код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pdeagle)
{
SendClientMessage(playerid, COLOR_WHITE, "You Found Desert Eagle With Ammo!");
GivePlayerWeapon(playerid, 24, 30); // Give the player the money
}
if(pickupid == psniper)
{
SendClientMessage(playerid, COLOR_WHITE, "You Found Sniper With Ammo.");
GivePlayerWeapon(playerid, 34, 20); // Give the player the money
}
if(pickupid == pgrenade)
{
SendClientMessage(playerid, COLOR_WHITE, "You Found Some Grenades");
GivePlayerWeapon(playerid, 16, 5); // Give the player the money
}
if(pickupid == pshotgun)
{
SendClientMessage(playerid, COLOR_WHITE, "You Found Shotgun with Ammo");
GivePlayerWeapon(playerid, 27, 20); // Give the player the money
}
if(pickupid == procket)
{
SendClientMessage(playerid, COLOR_WHITE, "You Found Rocket Launcher");
GivePlayerWeapon(playerid, 35, 5); // Give the player the money
}
if(pickupid == pmolotiv)
{
SendClientMessage(playerid, COLOR_WHITE, "You Found Molotov Cocktail");
GivePlayerWeapon(playerid, 18, 5); // Give the player the money
}
if(pickupid == p9mm)
{
SendClientMessage(playerid, COLOR_WHITE, "You Found 9mm");
GivePlayerWeapon(playerid, 22, 30); // Give the player the money
}
if(pickupid == pm4)
{
SendClientMessage(playerid, COLOR_WHITE, "You Found M4");
GivePlayerWeapon(playerid, 31, 30); // Give the player the money
}
if(pickupid == pheat)
{
SendClientMessage(playerid, COLOR_WHITE, "You Found HeatSeeker");
GivePlayerWeapon(playerid, 36, 5); // Give the player the money
}
if(pickupid == pmini)
{
SendClientMessage(playerid, COLOR_WHITE, "You Found Minigun");
GivePlayerWeapon(playerid, 38, 120); // Give the player the money
}
if(pickupid == pbomb)
{
SendClientMessage(playerid, COLOR_WHITE, "You Found SatChel Charge");
GivePlayerWeapon(playerid, 39, 5); // Give the player the money
}
if(pickupid == pnight)
{
SendClientMessage(playerid, COLOR_WHITE, "You Found Night Vis");
GivePlayerWeapon(playerid, 44, 1); // Give the player the money
}
if(pickupid == pthermal)
{
SendClientMessage(playerid, COLOR_WHITE, "You Found Thermal Goggles");
GivePlayerWeapon(playerid, 45, 1); // Give the player the money
}
if(pickupid == premote)
{
SendClientMessage(playerid, COLOR_WHITE, "You Found Detonator");
GivePlayerWeapon(playerid, 40, 1); // Give the player the money
}
if(pickupid == pflame)
{
SendClientMessage(playerid, COLOR_WHITE, "You Found Flame Thrower");
GivePlayerWeapon(playerid, 37, 120); // Give the player the money
}
if(pickupid == psilence)
{
SendClientMessage(playerid, COLOR_WHITE, "You Found Silenced 9mm");
GivePlayerWeapon(playerid, 23, 20); // Give the player the money
}
if(pickupid == ptear)
{
SendClientMessage(playerid, COLOR_WHITE, "You Found Tear Gas");
GivePlayerWeapon(playerid, 17, 5); // Give the player the money
}
if(pickupid == pmicro5)
{
SendClientMessage(playerid, COLOR_WHITE, "You Found Micro SMG");
GivePlayerWeapon(playerid, 28, 50); // Give the player the money
}
if(pickupid == pmp5)
{
SendClientMessage(playerid, COLOR_WHITE, "You Found MP5");
GivePlayerWeapon(playerid, 29, 35); // Give the player the money
}
if(pickupid == pak47)
{
SendClientMessage(playerid, COLOR_WHITE, "You Found AK-47");
GivePlayerWeapon(playerid, 30, 40); // Give the player the money
}
if(pickupid == prifle)
{
SendClientMessage(playerid, COLOR_WHITE, "You Found Country Rifle");
GivePlayerWeapon(playerid, 33, 30); // Give the player the money
}
if(pickupid == ptec9)
{
SendClientMessage(playerid, COLOR_WHITE, "You Found Tec-9");
GivePlayerWeapon(playerid, 32, 50); // Give the player the money
}
if(pickupid == pchest)
{
SendClientMessage(playerid, COLOR_WHITE, "You Found 5,000 $ Cash");
GivePlayerMoney(playerid, 5000); // Give the player the money
}
if(pickupid == pchest1)
{
SendClientMessage(playerid, COLOR_WHITE, "You Found 10,000 $ Cash");
GivePlayerMoney(playerid, 5000); // Give the player the money
}
if(pickupid == psawnoff)
{
SendClientMessage(playerid, COLOR_WHITE, "You Found Sawn Off Shotgun");
GivePlayerWeapon(playerid, 26, 20); // Give the player the money
}
if(pickupid == phpm)
SendClientMessage(playerid, COLOR_WHITE, "You Found Health Pack 200 HP");
SetPlayerHealth(playerid, 200);
return 1;
}
*( pgrenade = CreatePickup(19832,3,-6.7468,2353.9668,24.1406, 92); )