[Ajuda] Comando
#2

pawn Код:
CMD:setclima(playerid, params[])
{
    new clima, adminname[32];
    new string[128];
    GetPlayerName(playerid,adminname,sizeof(adminname));
    if(Player[playerid][Nivel] < 3) return SendClientMessage(playerid, -1, "[SERVER]: Comando Invalido");
    if(sscanf(params,"d",clima)) return SendClientMessage(playerid, VERMELHO, "[SERVER]: Use: Setclima [id]");
    SetWeather(clima);
    format(string,sizeof(string),"[ADM]: O Admin: %s Setou o Clima para %d!",adminname,clima);
    SendClientMessageToAll(AMARELO, string);
    return 1;
}
Reply


Messages In This Thread
Comando - by Adriano_MQD - 01.09.2012, 15:53
Re: Comando - by [JD]BlackFire - 01.09.2012, 15:56
Re: Comando - by Adriano_MQD - 01.09.2012, 16:02

Forum Jump:


Users browsing this thread: 1 Guest(s)