31.03.2012, 11:01
Hi I added a pickup in the server but I need to know how can I make it that if a person goes in the pickup it wont disappear. Takes long to respawn.
CreatePickup(1242, 23, 1503.3359, 1432.3585, 10.1191, -1);//which nerver disappear
AddStaticPickup(1239, 23, 1690.940917, -2261.739257, 13.501914, -1);
public OnPlayerPickupPickup(playerid, pickupid)
{
// your code here
return 1;
}
//Global variable
new infopickup;
//on init
init = AddStaticPickup(1239,2,1690.940917, -2261.739257, 13.501914, 0);
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == init)
{
SendClientMessage(playerid, 0xFFFFFFFF, "USE /Rules"); // Message the player
GameTextForPlayer(playerid, "USE /RULES", 3000, 4);
}
return 1;
}