21.07.2011, 12:02
Whats the point of using sscanf for such simple thing?
Untested, though should work I suppose
pawn Code:
new bool:tagset = false;
CMD:togglenametags(playerid, params[])
{
new ID = strval(params);
if(!IsPlayerAdmin(playerid)) return 0;
if(isnull(params)) return 0;
if(tagset == true) tagset = false, ToggleNameTags(0), SendClientMessage(playerid, -1, "Unset");
if(!IsNumeric(params)) return 0; // You may need this func
if(ID > 1 || < 0) return 0;
ToggleNameTags(ID);
tagset = true;
SendClientMessage(playerid, -1, "set");
return 1;
}