#8

Quote:
Originally Posted by patchkinson
Hey, i made it that if /new check ifisplayerinrangeofpoint do this else do blabla
pawn Код:
if(strcmp(cmdtext, "/new") == 0)
{
        if(IsPlayerInRangeOfPoint(playerid, 9.0, 1958.3783,1343.1572,15.3746))
        {
          SetPlayerPos(playerid,3057.6040,-1884.7632,1.9765);
          return 1;
        }
        else
        {
          SendClientMessage(playerid,red,"Go To Your spawn point");
          return 1;
        }
       
}
It works but I Fail in making it SetPlayerPos If playerisinrangepoint ,1968.4852,-2207.1484,13.5469 And 2015.1097,1546.3257,10.9667 there too!!! Please help me cose i want /new to transport player to the Setplayerpos if player is in those 2 places i wrote above, else sendclientmessage go to your spawn point
THANKS!!
pawn Код:
if(strcmp(cmdtext, "/new") == 0)
{
    if(IsPlayerInRangeOfPoint(playerid, 9.0, 1958.3783,1343.1572,15.3746))
    {
        SetPlayerPos(playerid,3057.6040,-1884.7632,1.9765);
    }
    else
    SendClientMessage(playerid,red,"Go To Your spawn point");
    return 1;
}

thats how it should look you only should return 1;
at the end if cmd :]
tho u didn't need the else brackets^^
Reply


Messages In This Thread
/new - by patchkinson - 22.11.2009, 15:30
Re: /new - by Stepashka - 22.11.2009, 15:48
Re: /new - by patchkinson - 22.11.2009, 16:17
Re: /new - by patchkinson - 22.11.2009, 17:09
Re: /new - by James_Bauer - 23.11.2009, 08:33
Re: /new - by GaGlets(R) - 23.11.2009, 11:19
Re: /new - by James_Bauer - 23.11.2009, 12:16
Re: /new - by saiberfun - 23.11.2009, 12:40
Re: /new - by patchkinson - 23.11.2009, 16:28

Forum Jump:


Users browsing this thread: 3 Guest(s)