DOWNLOAD AND PLAY GAME FREE

Script sa-mp Clima

Que tal voce mudar o clima de seu servidor?
com esse script voce pode faze isso
[ATENÇAO]Esse Comando e Apenas para Admins.


============================================================================


if(strcmp(cmd, "/clima", true) == 0){
new string[256];
new tmp[256];
new Clima;
new Nome[MAX_PLAYER_NAME];
tmp = strtok(cmdtext, idx);
Clima = strval(tmp);
if(!strlen(tmp)){
SendClientMessage(playerid, COR_AMARELO, "Você não expessificou o ID do Clima!");
return 1;
}
if(Clima > 45){
SendClientMessage(playerid, COR_AMARELO, "Os valores dos ID's do Clima são de 1 à 45!");
return 1;
}
GetPlayerName(playerid, Nome, sizeof(Nome));
if(IsPlayerAdmin(playerid)){
SetWeather(Clima);
format(string, sizeof(string), "%s mudou o Clima para %d.", Nome, Clima);
SendClientMessageToAll(COR_VERMELHO, string);
return 1;
} else {
SendClientMessage(playerid, COR_VERDE, "Somente Administradores!");
return 1;
}
}

0 comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...