Quote:
Originally Posted by [FU]Victious
pawn Код:
public OnPlayerUpdate(playerid) { if(IsPlayerInRangeOfPoint(playerid, range, x, y, z)) { if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough money to open the gate"); GivePlayerMoney(playerid, -1000);// will open for 1000$ MoveObject(playerid, x, y, z, speed); } return 1; }
Sorry for crappy indentation, I didn't copy this to pawno.
|
But the Moveobject(PLAYERID ) shouldnt be that the name of object?