[Ajuda] Sistema de escudo
#2

Tenta ai amigo se pegar me fala

pawn Код:
if(!strcmp(cmdtext,"/escudoon",true))
    {
    if(dini_Int(filene(PlayerName(playerid)),"portaarmason") == 0) {
    if(PlayerInfo[playerid][pProfissao] == Policia_Federal || PlayerInfo[playerid][pProfissao] == Interpol || PlayerInfo[playerid][pProfissao] == Bope || PlayerInfo[playerid][pProfissao] == Swat || PlayerInfo[playerid][pProfissao] == Narcoticos || PlayerInfo[playerid][pProfissao] == FBI) {
    SetPlayerAttachedObject(playerid,10,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);
    SetPlayerAttachedObject(playerid,11,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);
    SetPlayerArmour(playerid,100);
    escudo[playerid] = 1;
    SendClientMessage(playerid,Amarelo," | INFO | Escudo Ativado com sucesso!");
    }
    else {
    SendClientMessage(playerid,Vermelho," | ERRO | Vocк nгo Pode usar um escudo!");
    }
    }else
    {
    SendClientMessage(playerid,Amarelo," | ERRO | Vocк estб com porta armas ativado desligue /armaoff , nгo pode ser usado juntos!");
    }
    return 1;
    }


    if(!strcmp(cmdtext,"/escudooff",true))
    {
    if(PlayerInfo[playerid][pProfissao] == Policia_Federal || PlayerInfo[playerid][pProfissao] == Interpol || PlayerInfo[playerid][pProfissao] == Bope || PlayerInfo[playerid][pProfissao] == Swat || PlayerInfo[playerid][pProfissao] == Narcoticos || PlayerInfo[playerid][pProfissao] == FBI) {
    RemovePlayerAttachedObject(playerid,10);
    RemovePlayerAttachedObject(playerid,11);
    SetPlayerArmour(playerid,0);
    escudo[playerid] = 0;
    SendClientMessage(playerid,Amarelo," | INFO | Escudo Desativado com sucesso!");
    }
    else {
    SendClientMessage(playerid,Vermelho," | ERRO | Vocк nгo Tem um escudo!");
    }
    return 1;
    }
Reply


Messages In This Thread
Sistema de escudo - by chefaoBR - 03.06.2014, 17:41
Re: Sistema de escudo - by Smoking_Script - 03.06.2014, 18:31

Forum Jump:


Users browsing this thread: 1 Guest(s)