29.02.2016, 16:45
(
Последний раз редактировалось ZToPMaN; 29.02.2016 в 16:46.
Причина: I forgot to add some thing.
)
I don't know, but it's not working.
I'm tring to made the "usebox" , Shows swat skin, and when i try to click on it, it spawns with Swat skin as well.
Hm, Also, when i go in game, public click not working nor the skin shows in the use box.?
Can i get a help pls.
I'm tring to made the "usebox" , Shows swat skin, and when i try to click on it, it spawns with Swat skin as well.
Hm, Also, when i go in game, public click not working nor the skin shows in the use box.?
Can i get a help pls.
pawn Код:
new PlayerText:SwatST[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
//////////////SwatTexdrawSkinButton
SwatST[playerid] = CreatePlayerTextDraw(playerid, 258.250000, 82.583328, "usebox");
PlayerTextDrawLetterSize(playerid, SwatST[playerid], 0.000000, 6.062963);
PlayerTextDrawTextSize(playerid, SwatST[playerid], 183.000000, 0.000000);
PlayerTextDrawAlignment(playerid, SwatST[playerid], 1);
PlayerTextDrawColor(playerid, SwatST[playerid], 0);
PlayerTextDrawUseBox(playerid, SwatST[playerid], true);
PlayerTextDrawBoxColor(playerid, SwatST[playerid], -1);
PlayerTextDrawSetShadow(playerid, SwatST[playerid], 0);
PlayerTextDrawSetOutline(playerid, SwatST[playerid], 0);
PlayerTextDrawFont(playerid, SwatST[playerid], 0);
PlayerTextDrawSetSelectable(playerid, SwatST[playerid], true);
PlayerTextDrawSetPreviewModel(playerid, SwatST[playerid], 285);
PlayerTextDrawShow(playerid, SwatST[playerid]);
return 1;
}
forward OnPlayerChlickPlayerTextDraw(playerid, PlayerText:playertextid);
public OnPlayerChlickPlayerTextDraw(playerid, PlayerText:playertextid)
{
if(playertextid == SwatST[playerid])
{
SetPlayerSkin(playerid, 285);
}
return 1;
}