17.11.2009, 17:25
example:
pawn Код:
if(!strcmp(cmdtext, "/buyfood", true))
{
new food[128];
format(food, 128, "%s", cmdtext[9]);
if(cmdtext[9] == 32 && cmdtext[8] != EOS)
return SendClientMessage(playerid, 0xFF0000AA, "USAGE: \"/buyfood [food-name]\"");
if(!strcmp(food, "hamburger and fries", true))
{
//Stuff
}
//more statements if you want, which you probally do.
return true;
}