08.02.2011, 11:10
here screenshot
tnx for helper
tnx for helper
if(!strcmp(cmd,"/id",true)){
if(playerid => 0 && playerid <10) return format(string,sizeof(string),"00%d",playerid),SendClientMessage(playerid,COLOR_RED,string);
if(playerid =>10 && playerid <100) return format(string,sizeof(string),"0%d",playerid),SendClientMessage(playerid,COLOR_RED,string);
if(playerid =>100) return format(string,sizeof(string),"%d",playerid),SendClientMessage(playerid,COLOR_RED,string);
return 1;
}
if(!strcmp(cmd, "/id", true))
{
format(string, sizeof(string), "%03d", playerid);
SendClientMessage(playerid, COLOR_RED, string);
return 1;
}