[HELP] Spawning an " i " infront of doors
#1

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.
Reply
#2

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
Reply
#3

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
Nice! But how can i make the teleport so it works only at that spot?
Reply
#4

Код:
	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?
Reply
#5

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
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)