SA-MP Forums Archive
[Pedido] Mundos & Clima - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] Mundos & Clima (/showthread.php?tid=463741)



Mundos & Clima - lekinho911 - 13.09.2013

Bom eu estou montando um server de drift e se alguem tiver o comando /mundos ou /clima que me ajude porfavor to precisando muito desses comando obrigado.


Re: Mundos & Clima - PT - 13.09.2013

pawn Код:
CMD:clima( playerid, params[ ] )
{
    if(sscanf(params, "d", params[0])) return SendClientMessage(playerid, -1, "Use /clima [id]");
    SetWeather( params[0] );
    return 1;
}



Re: Mundos & Clima - lekinho911 - 13.09.2013

Й so que eu queria ele em strcmp


Re: Mundos & Clima - PT - 13.09.2013

pawn Код:
if( strcmp( cmd, "/clima", true) == 0 )
{
    new clima;
    if(sscanf(cmdtext, "s[7]d", cmd, clima)) return SendClientMessage(playerid, -1, "Use /clima [id]");
    SetWeather( clima );
    return 1;
}