Near Location Message
#1

I am looking to create a teleport command that only works when a player is in the vicinity of a point. The script works but it doesnt display the text BEFORE the command is entered.

here is what i have in my onplayercommandtext

Код:
 if(!IsPlayerInAnyVehicle(playerid)){ //Check to make sure a player is not in a vehicle

    if(IsPlayerInRangeOfPoint(playerid, 4.0, -2409.3364,-2189.7725,34.0391)){

     SendClientMessage(playerid, 0xFFFFFFFF, "Do you need a lift to the top? type /lift");

     if(!strcmp("/lift", cmd)) { //Works with or without the !

        SetPlayerPos(playerid,-2232.8716,-1737.5121,480.8323);

     }
    }
 }
Reply


Messages In This Thread
Near Location Message - by adsy - 19.12.2009, 20:04
Re: Near Location Message - by adsy - 19.12.2009, 23:51
Re: Near Location Message - by westre - 20.12.2009, 00:04
Re: Near Location Message - by patchkinson - 20.12.2009, 00:11
Re: Near Location Message - by DiddyBop - 20.12.2009, 01:00
Re: Near Location Message - by adsy - 20.12.2009, 11:28
Re: Near Location Message - by adsy - 20.12.2009, 14:28

Forum Jump:


Users browsing this thread: 1 Guest(s)