[AJUDA] Autorizaзгo
#6

Sim, й possнvel. Sу que й mais recomendado usar sscanf do que strtok.

pawn Код:
if(strcmp(cmd, "/autorizartrampo", true) == 0)
{
    new PlayerB, Adm[MAX_PLAYER_NAME], AdmB[MAX_PLAYER_NAME];
    if(PlayerInfo[playerid][pAdmin] < 1340) return SendClientMessage(playerid, -1, "Vocк nгo tem permissгo!");
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid, -1, "/autorizartrampo [playerid]");
    PlayerB = ReturnUser(tmp);
    AutorizadoT[PlayerB] = 1;
    GetPlayerName(playerid, Adm, sizeof(Adm));
    GetPlayerName(PlayerB, AdmB, sizeof(AdmB));
    format(sStr, sizeof(sStr), "O admin %d %s[%d] autorizou o admin %d %s[%d] a trabalhar!", PlayerInfo[playerid][pAdmin], Adm, playerid, PlayerInfo[playerid][pAdmin], AdmB, PlayerB);
    return 1;
}
Reply


Messages In This Thread
[AJUDA] Autorizaзгo - by Senhor_Azul - 11.06.2012, 09:27
Re: [AJUDA] Autorizaзгo - by Macintosh - 11.06.2012, 10:29
Re: [AJUDA] Autorizaзгo - by Senhor_Azul - 11.06.2012, 11:42
Re: [AJUDA] Autorizaзгo - by Don_Speed - 11.06.2012, 11:49
Re: [AJUDA] Autorizaзгo - by Senhor_Azul - 11.06.2012, 12:08
Re: [AJUDA] Autorizaзгo - by Macintosh - 11.06.2012, 12:35
Re: [AJUDA] Autorizaзгo - by Senhor_Azul - 11.06.2012, 12:49

Forum Jump:


Users browsing this thread: 4 Guest(s)