25.08.2016, 21:57
Como posso executar a Stock em um comando COMANDO:
STOCK:
Quote:
CMD:colete3(playerid, params[]) { SetPlayerKevlarHealth(strval(params), 300.0); return 1; } |
PHP код:
stock SetPlayerKevlarHealth(playerid, Float:amount){
new id = CountAttachedObjects(playerid);
playerKevlarHealth[playerid] = amount;
haveKevlar[playerid] = true;
SetPlayerAttachedObject(playerid, id, 19142, 1, 0.1, 0.05, 0.0);
SetPlayerAttachedObjectEx(19142,Vaga_Colete,playerid,id);
SendClientMessage(playerid, 0xFFFFFFFF, "[Informaзгo] Voce colocou seu Colete!");
ColocarColete[playerid] = 1;
return 1;
}