26.11.2009, 11:47
itґs not from me, but this is cool:
Код:
if(strcmp(cmd, "/haha", true) == 0) { new player; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "[USAGE]: /haha [playerid]"); } player = ReturnUser(tmp); if (player == playerid) { SendClientMessage(player, COLOR_RED, "You canґt laugh at yourself!"); return 1; } if(IsPlayerConnected(player)) { if(player != INVALID_PLAYER_ID) { new string[128]; GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s laughs at you!", sendername); SendClientMessage(playerid,COLOR_RED,string); } } return 1; }