[HELP] Create a "Info" icon. - 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] Create a "Info" icon. (
/showthread.php?tid=107636)
[HELP] Create a "Info" icon. -
FreddeN - 10.11.2009
I want a "Info" icon in the game, when I run into the icon, a GameTextForPlayer should pop up.
Thank You
Re: [HELP] Create a "Info" icon. -
Jeffry - 10.11.2009
ON top of your gamemode:
Put under "OnGameModeInt"
pawn Code:
info = CreatePickup(1239, 1, 2196.4102, 2411.9182, 10.8203) // Change these coords ( 1239 is already the I);
Then at "OnPlayerPickupPickup"
pawn Code:
public OnPlayerPickUpPickup(playerid, pickupid)
{{
if(pickupid == info)
{ GameTextForPlayer(playerid, "Hello", 3000, 0); // 3000 is: 3 seconds x 1000 = 3000 cause it milli-seconds }
return 1;
}
}
You get they styles of the GameText from:
https://sampwiki.blast.hk/wiki/GameTextStyle
If any errors occur, just say.
Hope that helped you.
Re: [HELP] Create a "Info" icon. -
DeathOnaStick - 10.11.2009
Quote:
Originally Posted by Jeffry
ON top of your gamemode:
Put under "OnGameModeInt"
pawn Code:
info = CreatePickup(1239, 1, 2196.4102, 2411.9182, 10.8203) // Change these coords ( 1239 is already the I);
Then at "OnPlayerPickupPickup"
pawn Code:
public OnPlayerPickUpPickup(playerid, pickupid) {{ if(pickupid == info) { GameTextForPlayer(playerid, "Hello", 3000, 0); // 3000 is: 3 seconds x 1000 = 3000 cause it milli-seconds } return 1; } }
You get they styles of the GameText from: https://sampwiki.blast.hk/wiki/GameTextStyle
If any errors occur, just say.
Hope that helped you.
|
One time you said vipinfo, in the declaration, and the other times you said just "info". No serious mistake, but errors will be there, anyway.
Re: [HELP] Create a "Info" icon. -
FreddeN - 10.11.2009
Quote:
Originally Posted by Jeffry
ON top of your gamemode:
Put under "OnGameModeInt"
pawn Code:
info = CreatePickup(1239, 1, 2196.4102, 2411.9182, 10.8203) // Change these coords ( 1239 is already the I);
Then at "OnPlayerPickupPickup"
pawn Code:
public OnPlayerPickUpPickup(playerid, pickupid) {{ if(pickupid == info) { GameTextForPlayer(playerid, "Hello", 3000, 0); // 3000 is: 3 seconds x 1000 = 3000 cause it milli-seconds } return 1; } }
You get they styles of the GameText from: https://sampwiki.blast.hk/wiki/GameTextStyle
If any errors occur, just say.
Hope that helped you.
|
Alright, thank you
Re: [HELP] Create a "Info" icon. -
Jeffry - 10.11.2009
IMPORTANT: Like DeathOnAStick said:
Make on the TOP (first point)
to:
This was my fault, sorry. Hope it works fine. Greetz. And thx to DeathOnAStick