05.04.2010, 22:13
public OnPlayerStateChange(playerid,newstate,oldstate)
{
new string[128];
new vehicleid = GetPlayerVehicleID(playerid);
new Float:Vehhealth,vhealth;
if(newstate == PLAYER_STATE_DRIVER)
{
vhealth = GetVehicleHealth(vehicleid,Float:Vehhealth);
format(string,sizeof(string),"Vehicle Name:%s VehicleID:%d VehicleHealth:%d",aVehicleNames[vehicleid - 400],vehicleid,vhealth);
SendClientMessage(playerid,ANNOUNCE,string);
SendClientMessage(playerid,ANNOUNCE,"You can eject any player from your vehicle by using /eject");
pvehicleid[playerid] = GetPlayerVehicleID(playerid);
pmodelid[playerid] = GetVehicleModel(GetPlayerVehicleID(playerid));
}
}
the message doesnt show when i enter a car as a driver or at all for that matter
{
new string[128];
new vehicleid = GetPlayerVehicleID(playerid);
new Float:Vehhealth,vhealth;
if(newstate == PLAYER_STATE_DRIVER)
{
vhealth = GetVehicleHealth(vehicleid,Float:Vehhealth);
format(string,sizeof(string),"Vehicle Name:%s VehicleID:%d VehicleHealth:%d",aVehicleNames[vehicleid - 400],vehicleid,vhealth);
SendClientMessage(playerid,ANNOUNCE,string);
SendClientMessage(playerid,ANNOUNCE,"You can eject any player from your vehicle by using /eject");
pvehicleid[playerid] = GetPlayerVehicleID(playerid);
pmodelid[playerid] = GetVehicleModel(GetPlayerVehicleID(playerid));
}
}
the message doesnt show when i enter a car as a driver or at all for that matter