Jump to content
  • 0

pomoc GameTextForAll


eRko16

Dotaz

zdravim, mam problem mam v OnPlayerStateChange ze hrac kdyz nastoupi do auta tak se mi vypise GameText ale to proste nefunguje zadne text se nezobrazi ale kdyz tam dam SendClientMessage tak to jde.

 

Tady je kod

public OnPlayerStateChange(playerid, newstate, oldstate)
{
   //-----------------------------[ Autoskola ]--------------------------------
   if(newstate == PLAYER_STATE_DRIVER)
 	{
    new vehicleid = GetPlayerVehicleID(playerid);
    if(vehicleid == AutoskolaCar)
    {
        if(Informace[playerid][DrivingTest] == 1)
        {
	        GameTextForPlayer(playerid,"~w~Jed a ~r~nenabourej",3500,3);
	        SetPlayerRaceCheckpoint(playerid,0,1426.1409,-1648.9845,12.9189,1427.1440,-1728.6689,12.9470,7.0);
	        AutoskolaChecks[playerid] = CHECK1;
        }
    }
   }
//--------------------[ Nazev auta ]----------------------------
  	if(newstate == PLAYER_STATE_DRIVER)
 	{
   new string[256];
   format(string, sizeof(string), "~G~%s", GetVehicleName(GetPlayerVehicleID(playerid)));
GameTextForPlayer(playerid, string, 5000, 1);
	}

	//--------------------------[ Firetruck ]-------------------------------
	if(newstate == PLAYER_STATE_DRIVER)
	{
	    new vehicleid = GetPlayerVehicleID(playerid);
	if(GetVehicleModel(vehicleid) == 407)
   	{
  			SCM(playerid, BARVA_CERVENA, "Test");
   	}
   }

   //----------------------[ Copcar ]-----------------------------
	if(newstate == PLAYER_STATE_DRIVER)
	{
	    new vehicleid = GetPlayerVehicleID(playerid);
	if(GetVehicleModel(vehicleid) == 596)
   	{
  			SCM(playerid, BARVA_CERVENA, "Test2");
   	}
   }
	return 1;
}

 

Jedna se o to prvni [ Autoskola ]

Link to comment
Share on other sites

7 odpovědí na tuto otázku

Recommended Posts

  • 0

Zkus to 3500 změnit na třeba 3000 nebo na 4000.. nevim, asi řikám kravinu, ale mě taky takhle někdy něco blblo, protože mi to nechtělo vzít např. 1111

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...