18.08.2010, 00:10
Hi, I was wondering what would I use to make it so when a player walks in to a Pickup how could I set it so some text's come on to there screen?
OnPlayerPickup
if(pickupd = YOURPICKUP)
{
/*send message*/
}
new TextPickup;
public OnGameModeInit()
{
TextPickup = AddStaticPickup(400, 2, 0.0, 0.0, 0.0, 0);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == TextPickup)
{
SendClientMessage(playerid, 0xFAFAFAF, "Your Text Here");
}
return 1;
}
C:\Users\BooNii3\Geramia RP\LS-RP\gamemodes\LSRP.pwn(201) : warning 211: possibly unintended assignment C:\Users\BooNii3\Geramia RP\LS-RP\gamemodes\LSRP.pwn(205) : warning 211: possibly unintended assignment