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; } |
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; } |
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;
}
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; }
CMD:hi(playerid, params[]) { new numb; if(sscanf(params, "i", numb)) return SendClientMessage(playerid, 0x8C8573C8, "/hi [number]"); { switch(numb) { case 1: { SendClientMessage(playerid, COLOR_RED, "/hi 1"); } case 2: { SendClientMessage(playerid, COLOR_RED, "/hi 2"); } default: { //the message for the hi 1 or 2 } } } return 1; }