Quote:
Originally Posted by Rafa
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/open", true) == 0) { 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; } return 1; } return 0; }
good luck
|
How to make it without command and where to put it?? :S