SetPlayerAttachedObject -
FenixBorn - 20.09.2012
eu adicionei para cops um comando exclusivo..q adiciona um escudo e capacete quando ele digita o comando /equipamentocop.
o Comando estб aqui:
pawn Код:
if(!IsACop(playerid))
return SendClientMessage(playerid, COLOR_RED, "[ERRO] Vocк nгo й um Policial.");
SetPlayerAttachedObject(playerid,5,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);
SetPlayerAttachedObject(playerid,6,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);
SetPlayerAttachedObject(playerid,7,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);
//GivePlayerWeapon(playerid,3,1);
SendClientMessage(playerid,COLOR_GREY,"[INFO] Vocк Pegou Seu Escudo e Capacete! Para remover digite /stophold");
return 1;
Como deveria Ficar:
Ele carrega assim,,mas depois de +/- 3 segundos,,ele fica assim:
O q pode ser? por favor preciso mesmo dessa ajuda
Re: SetPlayerAttachedObject -
FenixBorn - 21.09.2012
UPAЗO ja q ninguem ajudou
Re: SetPlayerAttachedObject -
Sky™ - 21.09.2012
Pode esta Ocorrendo algum COnflito com outros attc
Re: SetPlayerAttachedObject -
The Lost - 22.09.2012
Quote:
Originally Posted by Sky_.
Pode esta Ocorrendo algum COnflito com outros attc
|
E como o cara vai arrumar se vc n explica?
Re: SetPlayerAttachedObject -
Eduardo Honorato - 22.09.2012
usa este do meu servidor talvez nгo de conflito, depois me diz ai se deu tudo certo
pawn Код:
if(!strcmp(cmdtext,"/batalha",true))
{
if(IsACop(playerid))
{
if(Equipamentos[playerid] == 1)
{
RemovePlayerAttachedObject(playerid,1);
RemovePlayerAttachedObject(playerid,2);
RemovePlayerAttachedObject(playerid,3);
RemovePlayerAttachedObject(playerid,4);
Equipamentos[playerid] = 0;
return 1;
} if(Equipamentos[playerid] == 0)
{ SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);
SetPlayerAttachedObject(playerid,2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);
SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);
SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);
SendClientMessage(playerid,COLOR_YELLOW,"Vocк colocou os seus equipantos de batalha !");
Equipamentos[playerid] = 1;
return 1;
}
}
else
{
SendClientMessage(playerid,COLOR_YELLOW,"Vocк nгo й um COP.");
}
return 1;
}
Re: SetPlayerAttachedObject -
FenixBorn - 22.09.2012
Continua aparecendo e sumindo depois
ALGUEM?