17.04.2015, 16:07
pawn Код:
if(strcmp(cmdtext,"/recompensa",true) == 0){
for(new i=0; i<MAX_PLAYERS; i++){
if(IsPlayerConnected(i)){
new idrandom = random(GetMaxPlayers());
while(!IsPlayerConnected(idrandom)) idrandom = random(GetMaxPlayers());
SetPlayerColor (idrandom,Vermelho);
return idrandom;
}