Jump to content

Recommended Posts

Posted

Vreau un tutorial cum sa creez acel skin de langa minimap.CAP COADA,pentru ca am reusit sa creez acel td bla bla.Dar as vrea sa fac ca skin-ul de langa minimap sa fie cel ca cel care il are player-ul in joc.

Posted
new PlayerText:textdrawSkin;
 
public OnPlayerConnect(playerid)
{
    textdrawSkin = CreatePlayerTextDraw(playerid, 320.0, 240.0, "_");
    PlayerTextDrawFont(playerid, textdrawSkin, TEXT_DRAW_FONT_MODEL_PREVIEW);
    PlayerTextDrawUseBox(playerid, textdrawSkin, 1);
    PlayerTextDrawBoxColor(playerid, textdrawSkin, 0x000000FF);
    PlayerTextDrawTextSize(playerid, textdrawSkin, 40.0, 40.0);
    PlayerTextDrawSetPreviewModel(playerid, textdrawSkin, 411); // Show an Infernus (model 411)
    //PlayerTextDrawSetPreviewModel(playerid, textdrawSkin, 0); //Display model 0 (CJ Skin)
    //PlayerTextDrawSetPreviewModel(playerid, textdrawSkin, 18646); //Display model 18646 (police light object)
    PlayerTextDrawShow(playerid, textdraw);

	UpdateTDSkin(playerid);
    return 1;
}

stock UpdateTDSkin(playerid)
{
	new skin = GetPlayerSkin(playerid);
	PlayerTextDrawSetPreviewModel(playerid, textdraw, skin);
	return 1;
}

Nu am ce sa iti explic, nu vei intelege ori cum, uitate la codurile postate de mine acuma si vei intelege !

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.