13.08.2015, 03:28
Fim um aqui mas nгo testei, tenta ae! ^^
Topo do GM
Comando
Topo do GM
PHP код:
new bool:Caixa[MAX_PLAYERS]
PHP код:
CMD:caixa(playerid)
{
if(!Caixa[playerid])
{
Caixa[playerid] = true;
SetPlayerAttachedObject(playerid, 1, 1271, 1,0.20,0.36,0.0,0.0,90.0, 0.0, 0.4, 0.3, 0.6);
ApplyAnimation(playerid,"CARRY","crry_prtial",4.0,1,0,0,1,1,1);
SendClientMessage(playerid, 0xFFFFFFFF, "Vocк Pegou a caixa!");
}
else
{
RemovePlayerAttachedObject(playerid, 1);
ClearAnimations(playerid);
SendClientMessage(playerid, 0xFFFFFFFF, "Vocк Largou a caixa!");
Caixa[playerid] = false;
}
return 1;
}