23.05.2015, 21:36
e isso que tem commandtext?
PHP код:
if(clickedid == TipText1[playerid]){
OnPlayerCommandText(playerid, "/skin");}
if(clickedid == TipText3[playerid]){
TextDrawHideForPlayer(playerid, TipText2[playerid]);
TextDrawHideForPlayer(playerid, TipText5[playerid]);
TextDrawHideForPlayer(playerid, TipText6[playerid]);
SkinAktif[playerid] -= 1;
TextDrawSetPreviewModel(TipText6[playerid], SkinAktif[playerid]+1);
TextDrawSetPreviewModel(TipText5[playerid], SkinAktif[playerid]-1);
TextDrawSetPreviewModel(TipText2[playerid], SkinAktif[playerid]);
TextDrawShowForPlayer(playerid, TipText5[playerid]);
TextDrawShowForPlayer(playerid, TipText6[playerid]);
TextDrawShowForPlayer(playerid, TipText2[playerid]);}
if(SkinAktif[playerid] < 0) { OnPlayerCommandText(playerid, "/skin"),OnPlayerCommandText(playerid, "/skin"); }
if(clickedid == TipText4[playerid]){
TextDrawHideForPlayer(playerid, TipText2[playerid]);
TextDrawHideForPlayer(playerid, TipText5[playerid]);
TextDrawHideForPlayer(playerid, TipText6[playerid]);
SkinAktif[playerid] += 1;
TextDrawSetPreviewModel(TipText6[playerid], SkinAktif[playerid]+1);
TextDrawSetPreviewModel(TipText5[playerid], SkinAktif[playerid]-1);
TextDrawSetPreviewModel(TipText2[playerid], SkinAktif[playerid]);
TextDrawShowForPlayer(playerid, TipText2[playerid]);
TextDrawShowForPlayer(playerid, TipText6[playerid]);
TextDrawShowForPlayer(playerid, TipText5[playerid]);
if(SkinAktif[playerid] > 299) { OnPlayerCommandText(playerid, "/skin"),OnPlayerCommandText(playerid, "/skin"); }}
if(clickedid == TipText2[playerid]){
SetPlayerSkin(playerid, SkinAktif[playerid]);
OnPlayerCommandText(playerid, "/skin");}