03.03.2009, 11:33
pawn Код:
// on top
new YardiesPickup;
// ongamemodeinit
YardiesPickup = CreatePickup(1272, 2, -83.0494, 9.7471, 3.1172);
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == YardiesPickup)
{
new
tag[10], name[30];
GetPlayerName(playerid, name, 30);
format(tag, 10, "[Y]", tag);
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;
}
else return Teleport(playerid, 2324.419921, -1145.568359, 1050.710083, 88.2612, 12, false);
}
return 1;
}
You should really learn some basics first, read the wiki> https://sampwiki.blast.hk/wiki/Scripting_Basics .. like this you wont get anywhere.

