28.06.2013, 13:52
thats the correct code if i understood well what did you mean
EDIT: you shall look at the poster above me
pawn Код:
CMD:Thank(playerid,params[]) {
#pragma unused params
if(PlayerInfo[playerid][Level] >= 3) {
for(new p = 0; p < MAX_PLAYERS; p++){
if(!IsPlayerConnected(p)) continue;
PlayerPlaySound(p,5453,0.0,0.0,0.0);
}
format(string,sizeof(string),"{dd0000}%s : Thank you sir have a nice day!", Name );
SendClientMessageToAll(-1,string);
return 1;
} else return SendClientMessage(playerid,red,"ERROR: You need to be level 3 to use this command");
}