Hello everyone, today I will show you how to put the arrays on the players.
what are they for?
when you select a player, and you activate an option (for example money drop), if you keep this option active on the player, and then you select another player, it automatically becomes abbilita on the selected player without wanting. Here's how to fix it.
what are they for?
when you select a player, and you activate an option (for example money drop), if you keep this option active on the player, and then you select another player, it automatically becomes abbilita on the selected player without wanting. Here's how to fix it.
Code:
//variables
bool MoneyOnPlayer[18];
//func
void MoneyOnPlayer(int player)
{
STREAMING::REQUEST_MODEL(0x113FD533);
if (STREAMING::HAS_MODEL_LOADED(0x113FD533) == 1)
{
Vector3 mycoords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED(player), true);
OBJECT::CREATE_AMBIENT_PICKUP(0xCE6FDD6B, mycoords.x, mycoords.y, mycoords.z, 0, 40000, 0x113FD533, 0, 1);
STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(0x113FD533);
}
}
//to your hook
for (int array = 0; array < 18; array++)
{
//exaple
if (MoneyOnPlayer[i])
{
MoneyOnPlayer(i);
}
//more here
//how add to case? easy
addBoolOption("Money Drop",MoneyOnPlayer[selectedPlayer]);
switch(getOption())
{
case 1: MoneyOnPlayer[selectedPlayer] = MoneyOnPlayer[selectedPlayer];break;
}
break;
This account is currently banned
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.