13.01.2015, 14:49
this ??
Код:
CMD:ads( playerid, params[ ] ) { for(new i; i<GetMaxPlayers(); i++) { if(IsPlayerConnected(i)) { new pName[MAX_PLAYER_NAME], text[128], string[156]; GetPlayerName(playerid, pName,sizeof(pName)); if(sscanf(params, "s[128]",text)) return SendClientMessage(playerid, -1,"{F300FF}***AdmMsg {0049FF}: {FFFFFF}Usage: /ads [text]"); format(string,sizeof(string),"{0049FF}[ADVERTISE] {0049FF}: {F300FF}%s. Contact: %s [%i]",text,pName,playerid); printf(string); SendClientMessageToAll(COLOR_WHITE,string); PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0); } } return 1; }