Little help needed
#1

How to make 1 CMD does multiple entrances.

PHP код:
CMD:enter(playerid ,params[])
{
     
SetPlayerPos(X,Y,Z);
     Return 
1;

And now if I want to make CMD:enter with different positions it says its already defined.
Reply
#2

Use IsPlayerInRangeOfPoint.


pawn Код:
CMD:enter(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z))
    {
        SetPlayerPos(playerid, x, y, z);
        return 1;
    }
    if(IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z))
    {
        SetPlayerPos(playerid, x, y, z);
        return 1;
    }
    // as many as you need here
    return 1;
}
Reply
#3

Thanks!
Ill test it out later, and if it works ill +rep you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)