17.07.2014, 04:36
ID Macro Description
4 PLAYER_STATE_EXIT_VEHICLE Player exits a vehicle
5 PLAYER_STATE_ENTER_VEHICLE_DRIVER Player enters a vehicle as driver
6 PLAYER_STATE_ENTER_VEHICLE_PASSENGER Player enters a vehicle as passenger
I use this code..
public OnPlayerStateChange(playerid, newstate, oldstate)
{
fVehSpeed[playerid] = 0.0;
if(newstate == 4)
{
SCM(playerid,-1,"sales del vehiculo");
}
if(newstate == 5)
{
SCM(playerid,-1,"entras del vehiculo conductor");
}
if(newstate == 6)
{
SCM(playerid,-1,"entras al vehiculo pasajero");
}
return 1;
}
But i didn't receive this messages, why?
4 PLAYER_STATE_EXIT_VEHICLE Player exits a vehicle
5 PLAYER_STATE_ENTER_VEHICLE_DRIVER Player enters a vehicle as driver
6 PLAYER_STATE_ENTER_VEHICLE_PASSENGER Player enters a vehicle as passenger
I use this code..
public OnPlayerStateChange(playerid, newstate, oldstate)
{
fVehSpeed[playerid] = 0.0;
if(newstate == 4)
{
SCM(playerid,-1,"sales del vehiculo");
}
if(newstate == 5)
{
SCM(playerid,-1,"entras del vehiculo conductor");
}
if(newstate == 6)
{
SCM(playerid,-1,"entras al vehiculo pasajero");
}
return 1;
}
But i didn't receive this messages, why?