[AJUDA] Gamemode Tempo
#4

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
Teu relуgio ta usando SetWeather?
Procurei: SetWeather no meu gm e so deu isto:

pawn Код:
if(strcmp(cmd,"/clima",true) == 0){
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(pAdmin[playerid] > 2){
new weatherid;
tmp = strtok(cmdtext,idx);
weatherid = strval(tmp);
if(!strlen(tmp)){
SendClientMessage(playerid, Vermelho, "Digite: /clima [id-do-clima]");
return 1;
}
if(weatherid < -66 || weatherid > 45){
SendClientMessage(playerid, Vermelho, "(ERRO) ID invбlido! Digite um ID acima de 45 e abaixo de 67.");
return 1;
}else{
SetWeather(weatherid); // AQUI
new Names[30];
GetPlayerName(playerid,Names,sizeof(Names));
format(string,sizeof(string),"(INFO) O Administrador %s (%d) alterou o clima.",Names,playerid);
SendClientMessageToAll(tcadm, string);
return 1;
}
}
}
pawn Код:
if(strcmp("/aclima", cmdtext, true, 10) == 0){
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(pAdmin[playerid] == 1 || pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5 || pAdmin[playerid] == 6){
SendClientMessage(playerid, Vermelho, "(ERRO) Vocк nao e um admin!");
return 1;
}
if(pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5 || pAdmin[playerid] == 6){
new texto[256];
Previsao = random(20);
format(texto,sizeof(texto),"(INFO) O Clima de hoje й: %s",WeatherName[Previsao]);
SendClientMessageToAll(0xFFFFFFAA,texto);
SetWeather(Previsao); // AQUI
}
return 1;
}
pawn Код:
/*public Clima(){
new texto[256];
Previsao = random(20);
format(texto,sizeof(texto),"(INFO)Clima: %s",WeatherName[Previsao]);
SendClientMessageToAll(0x93FFFFAA,texto);
SetWeather(Previsao);
}*/
Reply


Messages In This Thread
[AJUDA] Gamemode Tempo - by GuiihCamargo - 22.03.2012, 17:24
Re: [AJUDA] Gamemode Tempo - by steeldark - 22.03.2012, 20:37
Re: [AJUDA] Gamemode Tempo - by ViniBorn - 22.03.2012, 21:16
Re: [AJUDA] Gamemode Tempo - by GuiihCamargo - 22.03.2012, 21:35
Re: [AJUDA] Gamemode Tempo - by ViniBorn - 22.03.2012, 21:38
Re: [AJUDA] Gamemode Tempo - by GuiihCamargo - 22.03.2012, 21:42
Re: [AJUDA] Gamemode Tempo - by Lucas_Alemao - 22.03.2012, 21:48
Re: [AJUDA] Gamemode Tempo - by GuiihCamargo - 22.03.2012, 22:02
Re: [AJUDA] Gamemode Tempo - by steeldark - 22.03.2012, 22:40

Forum Jump:


Users browsing this thread: 2 Guest(s)