[Help] I need tutorial for public phone
#2

you can try like this

Код:
CMD:pphone(playerid,parms[])
{
if(IsNearPPhone(playerid))
{
 and here you can put dialog
}
else SendClientMessage(playerid,-1,"ERROR: You are not near public phone..");
return true;
}
Forward
Код:
forward IsNearPPhone(playerid);
The callback
Код:
public IsNearPPhone(playerid)
{
            if(IsPlayerInRangeOfPoint(playerid, 4,x,y,z) || IsPlayerInRangeOfPoint(playerid, 4,x,y,z))
                {
                    return 1;
                }
               else if(IsPlayerInRangeOfPoint(playerid, 4,x,y,z) || IsPlayerInRangeOfPoint(playerid, 4,x,y,z))
                {
                    return 1;
                }
        return 0;
}
Reply


Messages In This Thread
[Help] I need tutorial for public phone - by Flanjak - 02.11.2011, 21:16
Re: [Help] I need tutorial for public phone - by ivanVU - 02.11.2011, 21:56
Re: [Help] I need tutorial for public phone - by AdamCooper - 02.11.2011, 22:08

Forum Jump:


Users browsing this thread: 1 Guest(s)