Near Location Message
#7

ok well i came up with a fix that seems ok to me

this is the script in the 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)){
     if(!strcmp("/lift", cmd)) { //Works with or without the !
        SetPlayerPos(playerid,-2232.8716,-1737.5121,480.8323);
     }
    }
    return 1;
 }
I then added to other sections some more bits:

at the top with other "new" commands:

Код:
new mountain;
in ongamemodeinit i added this:

Код:
mountain = CreatePickup(1239, 19, -2409.3364,-2189.7725,34.0391, 0);
this is a line to create an information symbol

and finally

i created this:

Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
  if(pickupid == mountain){
SendClientMessage(playerid, 0xFFFFFFFF, "Do you need a lift to the top? type /lift");
  } 
}
im going to see if i can find a better info symbol now

this one is the " i " symbol.

any objectid suggestions?
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)