Help with a function - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with a function (
/showthread.php?tid=124588)
Help with a function -
DarkAssassin - 31.01.2010
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.
Re: Help with a function -
[HiC]TheKiller - 31.01.2010
Just put it under OnPlayerStateChange.