Taxi script not working
#1

PHP код:
public OnPlayerClickMap(playeridFloat:fXFloat:fYFloat:fZ)
{
     for(new 
0MAX_PLAYERSi++)
    {
        if(
taxi[i]==&& GetPlayerState(playerid) == PLAYER_STATE_PASSENGER && != playerid)
        {
            
SetPlayerMapIcon(i0fXfYfZ00xFF0000FFMAPICON_GLOBAL);
               if(
IsPlayerInRangeOfPoint(i50fXfYfZ))
            {
                
RemovePlayerMapIcon(i0);
                
SendClientMessage(playerid, -1"you have arrived");
                
GameTextForPlayer(i"you have arrived"10000);
                 
TextDrawShowForPlayer(itextdraw_payout);
                 
TextDrawShowForPlayer(itextdraw_taxipayout);
                
GivePlayerMoney(i3000);
                
GivePlayerMoney(, -100);
            }
        }
    }
    return 
1;

PHP код:
CMD:taxi(playeridparams[])
{
    new 
vmodel GetVehicleModel(GetPlayerVehicleID(playerid));
    if(
vmodel != 420 && vmodel != 438) return SendClientMessage(playerid0xFF0000FF"You are not in a Taxi!");
    
GameTextForPlayer(playerid"TAXI"60004);
    
taxi[playerid] = 1;
    
PlayerTextDrawShow(playeridtextdraw_taxicustomer[playerid]);
    return 
1;

Whenever a player clicks the map, the taxi sees it on the map, however when he gets near, nothing happens :/
Any idea?
Reply


Messages In This Thread
Taxi script not working - by Adamoneoone - 04.07.2018, 16:45
Re: Taxi script not working - by Calisthenics - 04.07.2018, 17:11
Re: Taxi script not working - by Adamoneoone - 04.07.2018, 17:59
Re: Taxi script not working - by JasonRiggs - 04.07.2018, 18:12
Re: Taxi script not working - by Adamoneoone - 04.07.2018, 18:12

Forum Jump:


Users browsing this thread: 1 Guest(s)