29.01.2011, 15:44
Make a pickup:
Or use IsPlayerInRangeOfPoint in a command
pawn Код:
new pickup;
public OnGameModeInit()
{
pickup = CreatePickup(...);
return 1;
}
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pickup)
{
SetPlayerPos(playerid, x, y, z);
//...
}
return 1;
}