[Help] I need tutorial for public phone
#1

Please can some1 post me link where is explained how to make public phone or make for me tutorial for public phone.
Reply
#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
#3

Quote:
Originally Posted by ivanVU
Посмотреть сообщение
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;
}
never mind
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)