22.08.2010, 16:35
Agreed. Here's an example with ZCMD & sscanf:
pawn Код:
COMMAND:sethealth(playerid, params[])
{
new user, health;
if(!sscanf(params, "ui", user, health))
{
if(user != INVALID_PLAYER_ID)
{
SetPlayerHealth(user, health);
}
else return SendClientMessage(playerid, red, "Player offline.");
}
else return SendClientMessage(playerid, white, "/sethealth id health");
return 1;
}