my locationnbot working help +rep
#1

my location not work on driving car but it's work only foot and i want that work on driving car see picture





and this is on foot and it's work


http://i46.tinypic.com/24whvgn.png


and i want my location work on foot or car driving

adn this is my location code


Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new vehicleid = GetPlayerVehicleID(playerid);
    if(Spawned[playerid] == 1)
    {
    if(newstate == PLAYER_STATE_ONFOOT)
    {
    TextDrawHideForPlayer(playerid, Speed[playerid][Speedom]);
    TextDrawHideForPlayer(playerid, Speed[playerid][Speedom2]);
    new string[250];
    TextDrawShowForPlayer(playerid, Speed[playerid][Speedom]);
    format(string,sizeof(string),"~w~LoLocation: ~w~%s" ,ReturnPlayerZone(playerid));
    TextDrawSetString(Speed[playerid][Speedom], string);
    }
    }
Reply
#2

pawn Код:
// Not sure if I make the TD here. I would make a function to turn it on and off as needed and I think you need a way to update it as well.
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new vehicleid = GetPlayerVehicleID(playerid); // Is the player in a vehicle?
    if(Spawned[playerid] == 1) // This look like something that belongs at the very beginning.
    {
         if(newstate == PLAYER_STATE_ONFOOT) // Only do this if the newstate is onfoot...vehicle?
         {
              TextDrawHideForPlayer(playerid, Speed[playerid][Speedom]);
              TextDrawHideForPlayer(playerid, Speed[playerid][Speedom2]);
              new string[250];
              TextDrawShowForPlayer(playerid, Speed[playerid][Speedom]);
              format(string,sizeof(string),"~w~LoLocation: ~w~%s" ,ReturnPlayerZone(playerid));
              TextDrawSetString(Speed[playerid][Speedom], string);
         }
    }


Quote:
Originally Posted by sscarface
Посмотреть сообщение
my location not work on driving car but it's work only foot and i want that work on driving car see picture





and this is on foot and it's work


http://i46.tinypic.com/24whvgn.png


and i want my location work on foot or car driving

adn this is my location code


Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new vehicleid = GetPlayerVehicleID(playerid);
    if(Spawned[playerid] == 1)
    {
    if(newstate == PLAYER_STATE_ONFOOT)
    {
    TextDrawHideForPlayer(playerid, Speed[playerid][Speedom]);
    TextDrawHideForPlayer(playerid, Speed[playerid][Speedom2]);
    new string[250];
    TextDrawShowForPlayer(playerid, Speed[playerid][Speedom]);
    format(string,sizeof(string),"~w~LoLocation: ~w~%s" ,ReturnPlayerZone(playerid));
    TextDrawSetString(Speed[playerid][Speedom], string);
    }
    }
Reply
#3

same not working
Reply
#4

change

pawn Код:
if(newstate == PLAYER_STATE_ONFOOT)
to

pawn Код:
if(newstate == PLAYER_STATE_ONFOOT || newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
Reply
#5

same not working
Reply
#6

Why the heck you want to show the textdraw OnPlayerStateChange if you could just show the textdraw in OnPlayerSpawn
Reply
#7

RollTi i want remove this location and and this black screen too and i try but error can u coem with team viewer remoevd this..

id:493 840 792
pass:2479
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)