19.08.2010, 13:32
I started using zcmd and sscanf last night. How would I set up a view cmds? I don't use 'OnPlayerCommandText' any more so I can't do it the way I was..
COMMAND:heal(playerid, params[])
{
new ID, Float:health;
if(sscanf(params, "uf", ID, health)) SendClientMessage(playerid, COLOR_PINK,"Use /heal [playerid]");
else
SetPlayerHealth(ID, health);
return 1;
}
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
return 1;
}