23.10.2012, 21:48
Quote:
CMD:hi(playerid, params[])
{ new numb; { if(sscanf(params, "i", numb)) return SendClientMessage(playerid, 0x8C8573C8, "/hi [number]"); { if(numb == 1) { SendClientMessage(playerid, COLOR_RED, "/hi 1"); } if(numb == 2) { SendClientMessage(playerid, COLOR_RED, "/hi 2"); } } } return 1; } |
pawn Код:
CMD:hi(playerid,params[])
{
new Number;
if(sscanf(params,"d",Number)) return SendClientMessage(playerid, -1 "/hi [number]");
switch(Number)
{
case 0: SendClientMessage(playerid, -1 "Number 1");
case 1: SendClientMessage(playerid, -1 "Number 2");
}
return true;
}