public OnPlayerPickUpPickup
#12

public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == HealthArmour)
AddStaticPickup(1272, 2, -83.0494, 9.7471, 3.1172);
new tag[10], name[30];
GetPlayerName(playerid, name, 30);
format(tag, 10, "[Y]", tag);
Teleport(playerid, 2324.419921, -1145.568359, 1050.710083, 88.2612, 12, false);
if(strfind(name, tag, true) == -1)
{
SendClientMessage(playerid, COLOR_GREEN, "You cannot teleport to this place as you are not in The Yardies gang.");
return 1;
}
return Teleport(playerid, 2324.419921, -1145.568359, 1050.710083, 88.2612, 12, false);
}

What am I doing wrong?
Reply


Messages In This Thread
public OnPlayerPickUpPickup - by yelkreb - 02.03.2009, 15:43
Re: public OnPlayerPickUpPickup - by Danut - 02.03.2009, 15:45
Re: public OnPlayerPickUpPickup - by yelkreb - 02.03.2009, 18:24
Re: public OnPlayerPickUpPickup - by Danut - 02.03.2009, 18:29
Re: public OnPlayerPickUpPickup - by yelkreb - 02.03.2009, 18:57
Re: public OnPlayerPickUpPickup - by Rks25 - 02.03.2009, 19:09
Re: public OnPlayerPickUpPickup - by yelkreb - 03.03.2009, 06:06
Re: public OnPlayerPickUpPickup - by Popz - 03.03.2009, 08:27
Re: public OnPlayerPickUpPickup - by yelkreb - 03.03.2009, 09:04
Re: public OnPlayerPickUpPickup - by Popz - 03.03.2009, 09:26
Re: public OnPlayerPickUpPickup - by yelkreb - 03.03.2009, 09:34
Re: public OnPlayerPickUpPickup - by yelkreb - 03.03.2009, 10:05
Re: public OnPlayerPickUpPickup - by yelkreb - 03.03.2009, 10:16
Re: public OnPlayerPickUpPickup - by krisk - 03.03.2009, 11:32
Re: public OnPlayerPickUpPickup - by -Sneaky- - 03.03.2009, 11:33
Re: public OnPlayerPickUpPickup - by yelkreb - 03.03.2009, 11:38

Forum Jump:


Users browsing this thread: 1 Guest(s)