23.03.2010, 19:06
Hi, i have this script:
public OnPlayerUpdate(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 10, -2464.9296875,1522.9167480469,27.570457458496))
{
SendClientMessage(playerid, 0x99FF66AA, "Use /lift to bring the lift up and /lift to take it back down");
GameTextForPlayer(playerid, "/lift to bring the lift up and /lift to take it back down", 5000, 5);
}
return 1;
}
But how do i make it so that it only sends it once, not spamming me?
public OnPlayerUpdate(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 10, -2464.9296875,1522.9167480469,27.570457458496))
{
SendClientMessage(playerid, 0x99FF66AA, "Use /lift to bring the lift up and /lift to take it back down");
GameTextForPlayer(playerid, "/lift to bring the lift up and /lift to take it back down", 5000, 5);
}
return 1;
}
But how do i make it so that it only sends it once, not spamming me?