ATM System
#8

Well I don't know the object id of the ATM machine but you can find it out.
Use the following functions:

Код:
new atm = CreateObject(...................);
CreateObject @ the WIKI

Then check if the player is near an ATM machine where you have the command for the withrawal.

Код:
if(!strcmp(cmdtext,"/withdraw",true))
{
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    if(!IsPlayerInRangeOfPoint(playerid,xofatm,yofatm,zofatm,range)) return SendClientMessage(playerid,0xffffffaa,"You are not near an ATM.");
    
    //rest of the code
    return 1;
}
IsPlayerInRangeOfPoint @ the WIKI


EDIT: Yea like Grim_ said.
Reply


Messages In This Thread
ATM System - by fmmalves - 12.07.2010, 18:00
Re: ATM System - by MikkelGutten - 12.07.2010, 18:05
Re: ATM System - by fmmalves - 12.07.2010, 18:38
Re: ATM System - by DJDhan - 12.07.2010, 18:41
Re: ATM System - by MikkelGutten - 12.07.2010, 19:33
Re: ATM System - by fmmalves - 12.07.2010, 20:26
Re: ATM System - by Grim_ - 12.07.2010, 20:31
Re: ATM System - by DJDhan - 12.07.2010, 20:36
Re: ATM System - by fmmalves - 12.07.2010, 20:42
Re: ATM System - by Grim_ - 12.07.2010, 20:46

Forum Jump:


Users browsing this thread: 1 Guest(s)