Sending Message
#1

How can I do script when player stands on pick up that he gets message..etc type /enter to come in this building?
And if that can be done with diferent styles??
Reply
#2

Make global timer and chack if IsPlayerInRangeOfPoint( if yes gametextfor player
Reply
#3

Quote:
Originally Posted by Voldemort
Посмотреть сообщение
Make global timer and chack if IsPlayerInRangeOfPoint( if yes gametextfor player
Why not just check the player pickupid on OnPickupPickup?
Reply
#4

Create a new variable.
For example, i'll call it Var.
So, on top of the script, make a new variable.
pawn Код:
new Var;
Then go to public "OnGameModeInit()".
Then you do this:
pawn Код:
Var = CreatePickup(modelid, type, x, y, z)
then go to public "OnPlayerPickupPickup(playerid, pickupid)".
Then you do this:
pawn Код:
if(pickupid == Var)
{
    // Something
}
I hope you understand what I did here.
Reply
#5

Maxips2 Yeah I perfectly understand...I've done this into my "OnPlayerPickup"

Код:
if(pickupid == infopickup)
	{
	SendClientMessage(playerid, 0x1AFF00FF,"Type /enter if you want to go into building...");
	}
	return 1;
But heres the thing...Now when i stand in "i" outside I don't get any messages but when im in building and stand on "i" I get message..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)