[Pedido] DarGrana pa Players
#10

Nгo sei se ta certo n mecho com strcmp a tempos '-'

pawn Код:
if(strcmp("/dargrana", cmdtext, true, 10) == 0)
{
    new ID, Tanto;
    if (sscanf(params, "dd", ID, Tanto)) return SendClientMessage(playerid, -1, "USE: /dargrana [id] [quantia]");
    if (!IsPlayerConnected(ID)) return SendClientMessage(playerid, -1, "O jogador nгo estб conectado");
    GivePlayerMoney(ID, Tanto);
    new string[200];
    format(string, sizeof(string), "[ADMIN] Vocк deu б {FF0000}%s {FFFFFF}a quantia de {FF0000}%d {FFFFFF}de dinheiro.", GetPlayerNameEx(ID), Tanto);
    SendClientMessage(playerid, -1, string);
    format(string, sizeof(string), "[ADMIN] O(a)Administrador(a) {FF0000}%s {FFFFFF}lhe deu {FF0000}%d {FFFFFF}de dinheiro.", GetPlayerNameEx(playerid), Tanto);
    SendClientMessage(ID, -1, string);
    return 1;
}

//final da gm :

stock GetPlayerNameEx(playerid)
{
    new N[25];
    GetPlayerName(playerid,N,sizeof(N));
    return N;
}
Reply


Messages In This Thread
DarGrana pa Players - by Mteck - 10.01.2013, 17:10
Re: DarGrana pa Players - by Diogo123 - 10.01.2013, 17:12
Re: DarGrana pa Players - by Mteck - 10.01.2013, 17:14
Re: DarGrana pa Players - by tonisantolia - 10.01.2013, 17:18
Re: DarGrana pa Players - by Maklister - 10.01.2013, 17:19
Re: DarGrana pa Players - by Gii - 10.01.2013, 17:21
Re: DarGrana pa Players - by tonisantolia - 10.01.2013, 17:21
Re: DarGrana pa Players - by Maklister - 10.01.2013, 17:23
Re: DarGrana pa Players - by tonisantolia - 10.01.2013, 17:24
Re: DarGrana pa Players - by Diogo123 - 10.01.2013, 17:24

Forum Jump:


Users browsing this thread: 1 Guest(s)