14.04.2010, 01:20
This should work
Edit: Use the one below me, i fucked mine up (tends to happen when your heaps tired still
)
pawn Код:
if (strcmp("/health", cmdtext, true, 10) == 0)
{
new Float:health; // We use Float here because health is a float
new string[128];
GetPlayerHealth(string, sizeof(health);
format(string, sizeof(health),"Your HP is at %f percent!", health); // Use %f because health is a float
SendClientMessage(RED,string);
return 1;
}
