08.07.2011, 05:24
pawn Код:
CMD:setchan(playerid, params[])
{
new SChannel;
if(sscanf(params, "d", SChannel)) return SendClientMessage(playerid, 0xFF0000AA, "[USAGE]: /setchan [1-99999]");
else if (SChannel > 99999 || SChannel == 0) return SendClientMessage(playerid, 0xFF0000AA, "[ERROR]: Your channel needs to be between 1 and 99999");
else
{
new string[128];
format(string, sizeof(string), "You've succesfully set your channel number to: '%d'.", SChannel);
SendClientMessage(playerid, 0x81CFAB00, string);
PSChannel[playerid] = SChannel;
}
return 1;
}
can someone save it?
help....