28.06.2009, 13:40
pawn Код:
new nearsprunk[MAX_PLAYERS];
public OnPlayerUpdate(playerid)
{
if (!(PlayerToPoint(2.0, playerid, 1750.0591,-1592.9020,13.5422)))
{
nearsprunk[playerid]=true;
return 1;
}
if(nearsprunk[playerid])
{
SendClientMessage(playerid, 0x00FF00FF, "SPRUNK MACHINE: Drink by pressing F one time");
nearsprunk[playerid]=false;
}
return 1;
}