OnPlayerStateChange
#1

Hello i want if player get in ambulance he gets message type /paramdic to start the job this code dosent work it sends nothing to me

Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
    {
       
         if(GetVehicleModel(GetPlayerVehicleID(playerid) == 416)
         {
            SendClientMessage(playerid,Red,"Type /paramidc to start job");  
         }
    }
    return 1;
}
Reply


Messages In This Thread
OnPlayerStateChange - by TuNiSiAnO1 - 11.07.2018, 17:51
Re: OnPlayerStateChange - by Caessius - 11.07.2018, 17:53
Re: OnPlayerStateChange - by David (Sabljak) - 11.07.2018, 17:54

Forum Jump:


Users browsing this thread: 1 Guest(s)