18.11.2012, 07:44
Код:
CMD:p(playerid, params[]) { if(IsPlayerConnected(playerid)) { new text; if(sscanf(params, "s", text)) return SendClientMessage(playerid, COLOR_WHITE, "Koristenje: /pitaj [text]"); new sendername[MAX_PLAYER_NAME]; new string[126]; new text1; text1 = text; GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "Pitanje od %s-a: %s", sendername, text1); ABroadCast(COLOR_ASKQ,string,1); SendClientMessage(playerid, COLOR_ASKQ, "Vase pitanje je poslato Adminima & GameHeroima."); } return 1; }