13.01.2015, 11:29
its true for play sound to all player ?
Код:
CMD:ads( playerid, params[ ] ) { 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),"{F81414}[SERVER] {0049FF}: {F300FF}[Advertise] %s. Contact: %s(%i)",text,pName,playerid); printf(string); SendClientMessageToAll(COLOR_WHITE,string); PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0); return 1; }