>>>> Help with pickup <<<< [Still NOT Solved] <<<<<<<<
#1

Hi, I want to make a pickup when I come to the pickup and typ /enter to go in. How must that? Can anybody help
ps: Sory for my Bas english
Reply
#2

Hope this helps:

under gamemodeinit type in this:
Код:
Info1 = AddStaticPickup(1239, 2, XXXX, YYYY, ZZZZ);
then under onplayerpickuppick add this
Код:
	if (pickupid == Info1)
	{
SendClientMessage(playerid, COLOR_GRAD1, " Type in /enter To go into the building !");		
}
thats if you have more then 1 thing under onplayerpickuppickup

else then try this:
Код:
	if (pickupid == Info1)
	{
SendClientMessage(playerid, COLOR_GRAD1, "  Type in /enter To go into the building !");
	    }
		return 1;
 }
Reply
#3

Quote:
Originally Posted by zanakinz
Hope this helps:

under gamemodeinit type in this:
Код:
Info1 = AddStaticPickup(1239, 2, XXXX, YYYY, ZZZZ);
then under onplayerpickuppick add this
Код:
	if (pickupid == Info1)
	{
SendClientMessage(playerid, COLOR_GRAD1, " Type in /enter To go into the building !");		
}
thats if you have more then 1 thing under onplayerpickuppickup

else then try this:
Код:
	if (pickupid == Info1)
	{
SendClientMessage(playerid, COLOR_GRAD1, " Type in /enter To go into the building !");
	    }
		return 1;
 }
And where is the /enter command?
Reply
#4

Want him to wipe your ass for you too? He gave you the hard part, you should be able to figure out the command part.

Hint: If you want an easy way to execute commands outside of onplayercommandtext...look at DCMD.
Quote:
Originally Posted by ToD
Quote:
Originally Posted by zanakinz
Hope this helps:

under gamemodeinit type in this:
Код:
Info1 = AddStaticPickup(1239, 2, XXXX, YYYY, ZZZZ);
then under onplayerpickuppick add this
Код:
	if (pickupid == Info1)
	{
SendClientMessage(playerid, COLOR_GRAD1, " Type in /enter To go into the building !");		
}
thats if you have more then 1 thing under onplayerpickuppickup

else then try this:
Код:
	if (pickupid == Info1)
	{
SendClientMessage(playerid, COLOR_GRAD1, " Type in /enter To go into the building !");
	    }
		return 1;
 }
And where is the /enter command?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)