31.07.2014, 19:23
Text for Pickup
31.07.2014, 19:25
You need to create a textdraw that displays when the playe walks into the checkpoint.
https://sampwiki.blast.hk/wiki/Textdraw
https://sampwiki.blast.hk/wiki/Textdraw
31.07.2014, 19:29
Fist create a pickup in public OnGameModeInit()
PHP код:
pickupexample = CreatePickup(1239, 1, coordonate x, y, z);
PHP код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pickupexample)
{
SendClientMessage(playerid,-1, "{FFFFFF} Type {F00000}/paint {FFFFFF} to enter the paitball arena");
return 1;
}
}
02.08.2014, 16:02
Quote:
Fist create a pickup in public OnGameModeInit()
PHP код:
PHP код:
|
02.08.2014, 16:10
It's exactly the thing that you are looking for, you just need a textdraw and you do what r0bi did.
02.08.2014, 16:14
Код:
pickupexample = CreatePickup(1239, 1, coordonate x, y, z);
now instead of putting the textdraw in OnPlayerSpawn put it here on OnPlayerPickUpPickup
Код:
public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == pickupexample) { TextDrawShowForPlayer(playerid, textid); return 1; }
02.08.2014, 16:23
Do not forget to use PlayerTextDraws because you might need to use PlayerTextDrawSetString.
Why not use player Tds instead of global?
Because sometimes more than one player would view the textdraw and they might get the same string.. For example one is near pizza stack entrance and one near ammunition once the pizza stack guy steps near the pickup and gets pizza stack textdraw and after a second guy near ammunition steps near ammunition and gets his string set to ammunition as a result the guy near pizza pickup get his textdraw string set to ammunition..
So you need to use PlayerTextDraws thing..
Why not use player Tds instead of global?
Because sometimes more than one player would view the textdraw and they might get the same string.. For example one is near pizza stack entrance and one near ammunition once the pizza stack guy steps near the pickup and gets pizza stack textdraw and after a second guy near ammunition steps near ammunition and gets his string set to ammunition as a result the guy near pizza pickup get his textdraw string set to ammunition..
So you need to use PlayerTextDraws thing..
« Next Oldest | Next Newest »
Users browsing this thread: 2 Guest(s)