[AJUDA]zcmd
#9

Pronto?
pawn Код:
CMD:cv(playerid, params[]) //PARTICULAR
{
    if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, VERMELHO, "[ERRO] Voce nгo й Administrador!");
    new texto, name[24], string[128], id;
    GetPlayerName(playerid, name, sizeof(name));
    if(sscanf(params, "ds", id, texto)) return SendClientMessage(playerid, -1," Use /cv [id] [texto]");
    format(string, sizeof(string), "PAR - Admin %s: %s", texto, name);
    SendClientMessage(id, -1, string);
    return 1;
}

CMD:cv(playerid, params[]) //TODOS
{
    if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, VERMELHO, "[ERRO] Voce nгo й Administrador!");
    new texto, name[24], string[128];
    GetPlayerName(playerid, name, sizeof(name));
    if(sscanf(params, "s", texto)) return SendClientMessage(playerid, -1," Use /cv [texto]");
    format(string, sizeof(string), "ALL - Admin %s: %s", texto, name);
    SendClientMessageToAll(-1, string);
    return 1;
}
Reply


Messages In This Thread
[AJUDA]zcmd - by blacktrindade - 16.05.2012, 18:45
Re: [AJUDA]zcmd - by Delete_ - 16.05.2012, 18:47
Re: [AJUDA]zcmd - by ViniBorn - 16.05.2012, 18:48
Re: [AJUDA]zcmd - by blacktrindade - 16.05.2012, 18:50
Re: [AJUDA]zcmd - by CidadeNovaRP - 16.05.2012, 18:54
Re: [AJUDA]zcmd - by ViniBorn - 16.05.2012, 18:57
Re: [AJUDA]zcmd - by blacktrindade - 16.05.2012, 19:02
Re: [AJUDA]zcmd - by paulor - 16.05.2012, 19:07
Re: [AJUDA]zcmd - by CidadeNovaRP - 16.05.2012, 19:17
Re: [AJUDA]zcmd - by ViniBorn - 16.05.2012, 19:23

Forum Jump:


Users browsing this thread: 1 Guest(s)