[HELP] Spawning an " i " infront of doors - 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] Spawning an " i " infront of doors (
/showthread.php?tid=143138)
[HELP] Spawning an " i " infront of doors -
andershh - 21.04.2010
How can i spawn an " i " icon infront of doors where i want? like, if you step on it it says " /enter to go inside " etc.
And when you do /enter you get in to my wanted "Interior".
Is it hard or is there any easy method?
Код:
CreatePickup(1240,1240,1495.7537841797,-2147.7138671875,14.454691886902,0);
I tried that but it does only make an icon flying there. Nothin happens when you walk on it.
Re: [HELP] Spawning an " i " infront of doors -
Stunt-Andreas - 21.04.2010
Example:
Define it:
new Info[8];
//And to OnPlayerPickUpPickup:
InfoPickup[1] = CreatePickup(coords);
if (pickupid == InfoPickup[0])
{
GameTextForPlayer(playerid,"~w~Use /enter to enter",5000,3);
}
And make you /enter Teleport
Enjoy
Re: [HELP] Spawning an " i " infront of doors -
andershh - 21.04.2010
Quote:
Originally Posted by »»[DG
тσкyσDяιFт[SU]™«« ]
Example:
Define it:
new Info[8];
//And to OnPlayerPickUpPickup:
InfoPickup[1] = CreatePickup(coords);
if (pickupid == InfoPickup[0])
{
GameTextForPlayer(playerid,"~w~Use /enter to enter",5000,3);
}
And make you /enter Teleport
Enjoy ![Wink](images/smilies/wink.png)
|
Nice! But how can i make the teleport so it works only at that spot?
Re: [HELP] Spawning an " i " infront of doors -
andershh - 21.04.2010
Код:
else if (PlayerToPointStripped(2.0, playerid,2412.0017,-2547.4722,13.6517, cx,cy,cz))
{
//Varrio Los Aztecas HQ
SetPlayerPos(playerid,2528.2659,-1302.9790,1048.2891);
SetPlayerVirtualWorld(playerid, 3);
GameTextForPlayer(playerid, "~w~Varrio Los Aztecas Club", 5000, 3);
SetPlayerInterior(playerid,2);
Thats to an Gang HQ. Could i just Edit it?
Re: [HELP] Spawning an " i " infront of doors -
DJDhan - 21.04.2010
Quote:
Originally Posted by andershh
Quote:
Originally Posted by »»[DG
тσкyσDяιFт[SU]™«« ]
Example:
Define it:
new Info[8];
//And to OnPlayerPickUpPickup:
InfoPickup[1] = CreatePickup(coords);
if (pickupid == InfoPickup[0])
{
GameTextForPlayer(playerid,"~w~Use /enter to enter",5000,3);
}
And make you /enter Teleport
Enjoy ![Wink](images/smilies/wink.png)
|
Nice! But how can i make the teleport so it works only at that spot?
|
Go into OnPlayerCommandText and and then insert a command /enter and then when j types that check if he is in pickup.