text - 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: text (
/showthread.php?tid=223855)
text -
Almiuxas99 - 10.02.2011
public OnPlayerStateChange(playerid, newstate, oldstate){
airbreakcount[playerid]=0;
if(oldstate == PLAYER_STATE_DRIVER)
{
GameTextForPlayer(playerid," ",100,5);
}
if(newstate == PLAYER_STATE_DRIVER)
{
GameTextForPlayer(playerid,"jbjbjb",1000,5);
new vehicleid = GetPlayerVehicleID(playerid);
new modelis = GetVehicleModel(vehicleid);
if(modelis == 481 || modelis == 509 || modelis == 510)
{
Why gametext GameTextForPlayer(playerid,"jbjbjb",1000,5); not appear on all machines? only on a couple cars??
sorry my bad english.
Re: text -
Kwarde - 10.02.2011
Did you enter all the machines (vehicles I guess) as the driver?
And why you don't use "OnPlayerEnterVehicle(playerid, vehicleid)". It'll be called when a player enters a vehicle :P
Re: text -
Almiuxas99 - 10.02.2011
yes, Because if i press enter it shows text or dialog or.. earlier