17.07.2014, 05:29
Add a print to debug what's happening.
Then check and see what it inputs on the server console when you change into the certain states.
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
printf("%d - %d", newstate, oldstate);
fVehSpeed[playerid] = 0.0;
if(oldstate != 4 && newstate == 4)
{
SCM(playerid,-1,"sales del vehiculo");
}
if(oldstate != 5 && newstate == 5)
{
SCM(playerid,-1,"entras del vehiculo conductor");
}
if(oldstate != 6 && newstate == 6)
{
SCM(playerid,-1,"entras al vehiculo pasajero");
}
return 1;
}