29.09.2010, 16:55
pawn Код:
if(strcmp(cmdtext,"/myvehhealth",true) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
new Float:h,string[50];
GetVehicleHealth(GetPlayerVehicleID(playerid),h);
format(string,sizeof(string),"Your vehicle's health is %f.",floatround(h));
SendClientMessage(playerid,color,string);
}
return 1;
}