25.06.2011, 17:57
(
Последний раз редактировалось Lynn; 26.06.2011 в 02:34.
)
Fixed.
#define MAX_PLAYERS 25
CMD:stats(playerid, params[])
{
#pragma unused params
ShowPlayerStats(playerid, playerid);
return true;
}
CMD:check(playerid, params[])
{
#pragma unused params
new giveplayerid;
if(IsAdmin(playerid,1))
{
if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_GREY, "{F3FF02}USAGE:{33AA33} /check [playerid]");
ShowPlayerStats(playerid, giveplayerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You are not authorized to use this command !");
}
return true;
}
CMD:check(playerid, params[])
{
if(IsNull(params)) return SendClientMessage(playerid, COLOR_GREY, "{F3FF02}USAGE:{33AA33} /check [playerid]");
if(IsAdmin(playerid, 1))
{
new giveplayerid = strval(params);
if(IsPlayerConnected(giveplayerid)) ShowPlayerStats(playerid, giveplayerid);
else SendClientMessage(playerid, COLOR_GREY, " Player is not online");
}
else SendClientMessage(playerid, COLOR_GREY, " You are not authorized to use this command !");
return true;
}
new name[MAX_PLAYER_NAME];
new string[128];
name = pName(targetid);
if (name[targetid] == '_')
name[targetid] = ' ';
if (name[targetid] == '_')
name[targetid] = ' ';
COMMAND:check(playerid,params[])
{
new giveplayerid;
if(IsPlayerConnected(giveplayerid))
{