SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 29/06/2012, 12:45 AM   #1
Brazuca[]s
Big Clucker
 
Brazuca[]s's Avatar
 
Join Date: Jun 2012
Posts: 186
Reputation: 3
Default [Ajuda]Adicionando log's

Eu gostaria saber como eu posso adicionar em meu comando um log, que salvara o acusado,moderador, data,hora,dia que houve o kick, ele ficaria salvo na pasta Logs nas scriptfiles!

pawn Code:
CMD:kickar(playerid,params[])
{
    if(PlayerInfo[playerid][pStaff] < 1) return SendClientMessage(playerid, 0xFFFFFFAA, "Você não tem autorização!");
    new str[148],texto[20],idx;
    if(sscanf(params,"ds",idx,texto)) return SendClientMessage(playerid,0xFFFFFFAA,"Use /kickar (id) (motivo)");
    if(!IsPlayerConnected(idx)) return SendClientMessage(playerid,0xFFFFFFAA,"Jogador Offiline");
    format(str,sizeof(str),"Moderação: %s foi kickado pelo moderador %s, Motivo: %s", PlayerName(idx),PlayerName(playerid),texto);
    SendClientMessageToAll(0x2641FEAA,str);
    Kick(idx);
    return 1;
}
__________________
Procuro Jason VGS. Ex-Administrador do BPF-EL.
Procuro Jason VGS. Ex-Moderador do blog Script Brazilian.
Brazuca[]s is offline   Reply With Quote
Old 29/06/2012, 12:51 AM   #2
dPlaYer_
High-roller
 
dPlaYer_'s Avatar
 
Join Date: Jul 2011
Location: Salvador
Posts: 1,736
Reputation: 179
Default Re: [Ajuda]Adicionando log's

pawn Code:
new x1[MAX_PLAYER_NAME],x2[MAX_PLAYER_NAME];
GetPlayerName(playerid, nj, sizeof(nj));
GetPlayerName(playerid, idx, sizeof(idx));
printf("Adminstrador %s kickou o jogador %s.", x1, x2);
__________________
dPlaYer_ is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[AJUDA] Adicionando carro para comprar em casa! Skinner Português/Portuguese 5 01/09/2011 02:23 AM
[Ajuda] Adicionando ítens no RG ( godfather editado ) Sergio_MOW Português/Portuguese 4 05/05/2011 09:27 PM
[Ajuda] Virtual World adicionando no GM Baddark2131 Português/Portuguese 13 25/05/2010 08:15 PM


All times are GMT. The time now is 02:13 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.