20.12.2009, 14:28
ok well i came up with a fix that seems ok to me
this is the script in the onplayercommandtext:
I then added to other sections some more bits:
at the top with other "new" commands:
in ongamemodeinit i added this:
this is a line to create an information symbol
and finally
i created this:
im going to see if i can find a better info symbol now
this one is the " i " symbol.
any objectid suggestions?
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; }
at the top with other "new" commands:
Код:
new mountain;
Код:
mountain = CreatePickup(1239, 19, -2409.3364,-2189.7725,34.0391, 0);
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"); } }
this one is the " i " symbol.
any objectid suggestions?