02.10.2011, 08:18
pawn Код:
dcmd_changeakey(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
new string[55];
if(!IsNumeric(params[0])) return SendClientMessage(playerid, COLOR_LIGHTRED, "* Your security key must be digits only !");
if(9999 > params[0] < 1000) return SendClientMessage(playerid, COLOR_LIGHTRED, "* Your security key must be 4 digits long only !");
PlayerInfo[playerid][pSecKey] = params[0];
format(string, sizeof(string), "* Security key changed to: %d !", PlayerInfo[playerid][pSecKey]);
SendClientMessage(playerid, COLOR_GREY, string);
return 1;
}
return 1;
}