22.11.2014, 08:24
I'm having easy problem, I created a pickup because i couldn't create checkpoint, Anywayz..
How can i make it not dissapear? i mean when i am on it it shows me weapon dialog, when i walk away it dissapears.
How to make it stay?
How can i make it not dissapear? i mean when i am on it it shows me weapon dialog, when i walk away it dissapears.
How to make it stay?
PHP код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pickup_Arrow)
{
SetPlayerInterior(playerid,6);
SetPlayerPos(playerid,316.1981,-167.2833,999.5938);
}
else if(pickupid == pickup_Shop)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Weapon shop", "{ff0000}Deagle {00CC00}$2000\n{FF0000}Shotgun {00CC00}$1000\n{FF0000}Sniper {00CC00}$3000\n{FF0000}M4 {00CC00}$5000\n{FF0000}MP5 {00CC00}$1000\n{FF0000}Combat {00CC00}$6000\n{FF0000}Grenade {00CC00}$6000\n{FF0000}Tec9 {00CC00}$4000\n{ff0000}Slilenced pistol {00CC00}$1000\n{ff0000}AK-47 {00CC00}$5000", "Purchase", "Exit");
}
return 1;
}