[AJUDA]Colete com SetPlayerAttachedObject
#1

ai to com um erro tava vendo uns nigoso poraй e achei um comando q quando digita /colete aparece um colete so q ele fica branco , aq ta tudo o q o comando tem, ajudem-me plz '--'

pawn Код:
TOPO DO GM
forward ChecarLife(playerid)

ONGAMEMODEINIT
SetTimer("ChecarLife",500,true);

ONPLAYERCOMMANDTEXT
    if(strcmp(cmdtext, "/colete", true) == 0)
    {
    SetPlayerArmour(playerid, 100);
    SetPlayerAttachedObject(playerid, 0, 19142, 1, 0.084367, 0.041716, 0.017513, 3.662353, 355.182006, 0.181060, 1.000000, 1.000000, 1.000000 );
    }

FINAL DO GM
public ChecarLife()
{
   for(new i = 0; i <MAX_PLAYERS; i++) if(IsPlayerConnected(i))
   {
       static HP;
       GetPlayerArmour(i,HP);
       if(GetPlayerArmour(i) > 0)
                                  SetPlayerAttachedObject(i,5,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);
       else
            RemovePlayerAttachedObject(i,5);
   }
   return true;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)