Hide pickups
#1

Hello, can someone create me a sample command to hide pickups?
Make the command /hidepickups
Reply
#2

In order to do that, you will need to make your pickups saved to an array, and then delete them all (on hiding), and when you un-hide them, load them from the array.
Reply
#3

pawn Код:
CMD:hidepickups(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF3300, "You're not a server administrator.");
    for(new p = 0; p < MAX_PICKUPS; p++)
    DestroyPickup(p);
    return 1;
}
Careful though, that will destroy all pickups.

You can also use Foreach to create and hide/un-hide the pickups.
Reply
#4

Define "hide" because there is a way to make them invisible.
Reply
#5

Quote:
Originally Posted by Steven82
Посмотреть сообщение
Define "hide" because there is a way to make them invisible.
What's that?
Reply
#6

Make it pickup type 0

"0 - The pickup does not display"
Reply
#7

Quote:
Originally Posted by Steven82
Посмотреть сообщение
Make it pickup type 0

"0 - The pickup does not display"
How does he change the pickup type and how does he change all the pickup types back? He has to use either foreach or store them in arrays.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)