>>>> Help with pickup <<<< [Still NOT Solved] <<<<<<<< - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: >>>> Help with pickup <<<< [Still NOT Solved] <<<<<<<< (
/showthread.php?tid=70758)
>>>> Help with pickup <<<< [Still NOT Solved] <<<<<<<< -
RyDeR` - 27.03.2009
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
Re: >>>> Help with pickup <<<< -
zanakinz - 27.03.2009
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;
}
Re: >>>> Help with pickup <<<< -
RyDeR` - 27.03.2009
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?
Re: >>>> Help with pickup <<<< -
kaisersouse - 27.03.2009
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? 
|