07.08.2009, 22:35
i got it like this ive never done this before so this is just random trying and i tryed your way but i get errors
only thing is is that when i got to an object nothing happens
pawn Код:
public ATM(playerid)
{
new Float:objectx, Float:objecty, Float:objectz;
//new Float: playerx, playery, playerz;
new Float:X, Float:Y, Float:Z;
GetPlayerPos( playerid, X, Y, Z);
for(new i = 0; i < sizeof(object); i++)
{
if(PlayerToPoint(4, playerid, objectx, objecty, objectz))
{
GetObjectPos(object[i], objectx, objecty, objectz);
ShowMenuForPlayer(Bank, playerid);
TogglePlayerControllable(playerid,0);
}
}
return 1;
}
