Help with a function
#1

I forgot the function: It was STATE_PLAYER_ONENTERVEHICLE OR SOMETHING LIKE THAT.

pawn Код:
if(IsPlayerInCar(playerid))
    {
  if (newstate == PLAYER_STATE_PASSENGER || newstate == PLAYER_STATE_DRIVER)
  {
  SendClientMessage(playerid, COLOR_RED, "Did you know: You can press SPACEBAR to add Nitrous Oxside (NOS) to your car");
  GameTextForPlayer(playerid,"~w~Press SPACEBAR to ~n~~g~ADD NOS To your Car.",2500,1);
  }
  }
I want it to only say it once not forever.
Reply
#2

Just put it under OnPlayerStateChange.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)