16.12.2014, 03:11
Bom tenho um bug que ele aparece e desaparece, quero que alguem me ajude a tirar e me explique oq tava acontecendo.
PHP код:
if(!strcmp(cmdtext,"/escudo",true))
{
if(PlayerToPoint(2, playerid,255.1110,76.0224,1003.6406) || PlayerToPoint(2,playerid,-1616.1294,681.1594,7.1875) || PlayerToPoint(2,playerid,230.1107,165.2237,1003.0234) || PlayerToPoint(2, playerid,240.7396,112.9709,1003.2188) || PlayerToPoint(2, playerid,1530.3945,-1664.0377,6.2187) || PlayerToPoint(2, playerid,302.7606,-1529.7537,24.9219) || PlayerToPoint(2, playerid,-1345.8823,492.5301,11.2027)
|| PlayerToPoint(2, playerid,326.4911,307.0710,999.1484))
{
SetPlayerAttachedObject(playerid,1,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);
SetPlayerAttachedObject(playerid,2,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);
SendClientMessage(playerid,COLOR_GREY," Para retirar o escudo digite /tirarescudo!");
return 1;
}
else
{
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode pegar escudo no local de equipar!");
}
}
if(!strcmp(cmdtext,"/tirarescudo",true))
{
RemovePlayerAttachedObject(playerid,1);
RemovePlayerAttachedObject(playerid,2);
return 1;
}