SA-MP Forums Archive
[Ajuda] Comando - 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: [Ajuda] Comando (/showthread.php?tid=559031)



Comando - FabioGTP - 20.01.2015

como faзo um comando que manda uma msg automatica tipo /krl o Administrador mandou todo mundo se fuder


Re: Comando - NexNix - 20.01.2015

PHP код:
CMD:exemplo(playeridparams[])
{
new 
nomeadm[30], Str[300];
GetPlayerName(playeridnomeadm30);
format(Strsizeof(Str), "O Admin %s estб feliz ",nomeadm);
SendClientMessageToAll(-1Str);
return 
1;




Re: Comando - LucaAllexandre - 20.01.2015

https://sampforum.blast.hk/showthread.php?tid=396524


Re: Comando - NexNix - 20.01.2015

Код:
https://sampforum.blast.hk/showthread.php?tid=396524
Ai eu jб nгo sei se o cara quer uma mensagem no chat, TextDraw ou GameTextForPlayer..


Re: Comando - LucaAllexandre - 20.01.2015

TextDraw > All


Re: Comando - ipsLuan - 20.01.2015

Simples e ъtil.

pawn Код:
CMD:krl(playerid) {
    new celula[70];
    if(IsPlayerAdmin(playerid)) {
        format(celula, sizeof(celula), "O administrador %s mandou todo mundo se fuder", jogador);
        SendClientMessageToAll(-1, celula);
    }
    else return SendClientMessage(playerid, -1, "Voce nao e administrador");
    return 1;
}
Se for fazer em TextDraw, no lugar do SendClientMessageToAll vocк formata a TextDraw.