OnPlayerStateChange - 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)
+--- Thread: OnPlayerStateChange (
/showthread.php?tid=494771)
OnPlayerStateChange -
Ananisiki - 14.02.2014
~~~~~~
Re: OnPlayerStateChange -
AlonzoTorres - 14.02.2014
pawn Код:
if (newstate == PLAYER_STATE_DRIVER)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(AdminCar[vehicleid] == 1)
{
if(!IsCnRAdmin(playerid))
{
RemovePlayerFromVehicle(playerid);
GameTextForPlayer(playerid, "~r~This Is An Admin Vehicle~n~~p~Ejected", 5000, 3);
}
}
}
Re: OnPlayerStateChange -
Ananisiki - 14.02.2014
~~~~~~
Re: OnPlayerStateChange -
AlonzoTorres - 14.02.2014
Quote:
Originally Posted by Ananisiki
Thanks, it works but i don't get the gametext, why?
|
But it does eject the player, correct?
Re: OnPlayerStateChange -
Ananisiki - 14.02.2014
~~~~~~
Re: OnPlayerStateChange -
Ananisiki - 14.02.2014
~~~~~~
Re: OnPlayerStateChange -
AnthonyTimmers - 14.02.2014
Quote:
Originally Posted by Ananisiki
Got a little problem,
I have a gametext there it shows which car it is when you enter the vehicle, the eject gametext doesn't appear because of this, what can I do?
|
You may only use 1 Gametext at the time, try to use TextDraw.