07.10.2012, 04:37
Aff Tenso e pra setar o tempo ? se for o comando ai
pawn Код:
CMD:setempo(playerid, params[])
{
new t[10];
if(!NivelRequerido(playerid, 2)) return 1;
if(sscanf(params, "s", t)) return MensagemDupla(playerid, "Use /setempo [Manha/Tarde/Noite]", "Use o comando para alterar o tempo do servidor");
if(strcmp(t, "manha", true) == 0)
{
MensagemFormatadaParaTodos(AZUL_CLARO, "O Admin {1B95E0}%s{00C2EC} mudou o tempo para manha", Nome(playerid));
for(new i = 0; i < MAX_PLAYERS; ++i)
{
SetPlayerTime(i, 9, 0);
}
SetWorldTime(9);
return 1;
}
if(strcmp(t, "tarde", true) == 0)
{
MensagemFormatadaParaTodos(AZUL_CLARO, "O Admin {1B95E0}%s{00C2EC} mudou o tempo para tarde", Nome(playerid));
for(new i = 0; i < MAX_PLAYERS; ++i)
{
SetPlayerTime(i, 14, 0);
}
SetWorldTime(14);
return 1;
}
if(strcmp(t, "noite", true) == 0)
{
MensagemFormatadaParaTodos(AZUL_CLARO, "O Admin {1B95E0}%s{00C2EC} mudou o tempo para noite", Nome(playerid));
for(new i = 0; i < MAX_PLAYERS; ++i)
{
SetPlayerTime(i, 0, 0);
}
SetWorldTime(0);
return 1;
}
Msg(playerid, CINZA, " Use /setempo [Manha/Tarde/Noite]");
return 1;
}
// o outro comando se vira !