Jump to content
  • 0

pomoc MCHAT


Pekusis

Dotaz

Bejm Čaute som tu nový.. a chcel by som Vás poprosíť o pomoc s MCHATOM = MiniChatom ..

 

Keď dam napriklad /lv tak ma to normalne portne .. ale keď tam zas /sf tak .. mi to nepojde ten textdraw pod to .. ale furt na tom istom mieste :/ Možete mi prosím pomoct ?

 

      if(!strcmp(cmdtext, "/novinar", true))
       {
       new text[150];
       GetPlayerName(playerid, text, 24);
       format(text, 100, "~w~Hrac ~b~%s ~w~se odwarpoval k novinarovy", text);
       AddStringToTextDraw(text);
       if(IsPlayerInAnyVehicle(playerid) && PLAYER_STATE_DRIVER)
       {
       new VehID = GetPlayerVehicleID(playerid);
       SetVehiclePos(VehID, 2765.331298,1281.546752,10.408432);
       }else{
       SetPlayerPos(playerid, 2765.331298,1281.546752,10.408432);
       }
       return 1;
       }
       if(!strcmp(cmdtext, "/ballas", true))
       {
       new text[150];
       GetPlayerName(playerid, text, 24);
       format(text, 100, "~w~Hrac ~b~%s ~w~se odwarpoval uzemiu BALLAS", text);
       AddStringToTextDraw(text);
       if(IsPlayerInAnyVehicle(playerid) && PLAYER_STATE_DRIVER)
       {
       new VehID = GetPlayerVehicleID(playerid);
       SetVehiclePos(VehID, 2220.928466,-1166.428222,25.733079);
       }else{
       SetPlayerPos(playerid, 2220.928466,-1166.428222,25.733079);
       }
       return 1;
       }

Link to comment
Share on other sites

2 odpovědí na tuto otázku

Recommended Posts

  • 0
	for(new t=0;t<5;t++)
	{
	Textdraw0[t] = TextDrawCreate(450,242 + t*15, "_");
	TextDrawBackgroundColor(Textdraw0[t], 255);
	TextDrawFont(Textdraw0[t], 1);
	TextDrawLetterSize(Textdraw0[t], 0.200000, 1.600000);
	TextDrawColor(Textdraw0[t], -1);
	TextDrawSetOutline(Textdraw0[t], 0);
	TextDrawSetProportional(Textdraw0[t], 1);
	TextDrawSetShadow(Textdraw0[t], 1);
	}

dej si to do OnGameModeInit()

Pozice atp si změň na svoje 

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...