[AJUDA]Cod. Fail/Bug
#10

pawn Код:
if(strcmp(cmd, "/rp", true) == 0)
{
    new aname[MAX_PLAYER_NAME];
    new tmp[128];
    GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
    if(pAdmin[playerid] < 1) return SendClientMessage(playerid, -1, "Sem authorizaзгo");
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid, Vermelho, "{0099FF}(~){CCCCFF}Use: /rp [playerid]!");
    new plid = strval(tmp);
    if(IsPlayerConnected(plid))
    {
        new vid;
        vid = GetPlayerVehicleID(plid);
        SetVehicleToRespawn(vid);
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(plid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "{0099FF}(~)AdmCmd(~) - {CCCCFF} %s (%d) deu respawn no seu carro !", aname,playerid);
        SendClientMessage(plid,outraadm, string);
        SendClientMessage(playerid, Verde, "{0099FF}(~){CCCCFF} Comando efetuado com sucesso!");
        return 1;
    }
    else SendClientMessage(playerid, Vermelho, "{0099FF}[x]{CCCCFF} ID invбlido");
    return 1;
}
Tenta agora ¬¬'
Reply


Messages In This Thread
[AJUDA]Cod. Fail/Bug - by dPlaYer_ - 10.11.2011, 22:25
Re: [AJUDA]Cod. Fail/Bug - by Mteck - 10.11.2011, 22:33
Re: [AJUDA]Cod. Fail/Bug - by Pharrel - 10.11.2011, 22:36
Re: [AJUDA]Cod. Fail/Bug - by steki. - 10.11.2011, 22:37
Re: [AJUDA]Cod. Fail/Bug - by dPlaYer_ - 10.11.2011, 22:38
Re: [AJUDA]Cod. Fail/Bug - by Pharrel - 10.11.2011, 22:40
Re: [AJUDA]Cod. Fail/Bug - by dPlaYer_ - 10.11.2011, 22:41
Re: [AJUDA]Cod. Fail/Bug - by Pharrel - 10.11.2011, 22:45
Re: [AJUDA]Cod. Fail/Bug - by dPlaYer_ - 10.11.2011, 22:51
Re: [AJUDA]Cod. Fail/Bug - by Pharrel - 10.11.2011, 22:54

Forum Jump:


Users browsing this thread: 2 Guest(s)