#include <a_samp>#include <sscanf>new SkinText[MAX_PLAYERS];public OnFilterScriptInit(){for(new i;i<MAX_PLAYERS;i++) //Senki ne kérdezze hogy miért nem használok playertextdrawot. a válasz úgyis az lenne rá: MART sz*r BUGOS.{SkinText = TextDrawCreate(320.0, 240.0, \"_\");TextDrawFont(SkinText, TEXT_DRAW_FONT_MODEL_PREVIEW);TextDrawUseBox(SkinText, 1);TextDrawBoxColor(SkinText, 0x000000FF);TextDrawTextSize(SkinText, 40.0, 40.0);TextDrawSetPreviewModel(SkinText, 0);}return 1;}CMD:megjelenit(playerid,params[]){new skinid;if(sscanf(params,\"d\",skinid)) return SendClientMessage(playerid,-1,\"HASZNÁLAT: /megjelenit [sKINID]\");TextDrawShowForPlayer(playerid,SkinText[playerid]);TextDrawSetPreviewModel(SkinText[playerid],skinid);return 1;}
#include a_samp#include zcmd#include sscanf2new Text:skintd[MAX_PLAYERS];new tmp_tdnum[MAX_PLAYERS] = {-1, ...};public OnPlayerConnect(playerid) {skintd[playerid] = TextDrawCreate(320.0, 240.0, \"_\"); //Létrehozunk egy textdrawot, láthatatlan szöveggel, a képernyõ közepére.TextDrawFont(skintd[playerid], TEXT_DRAW_FONT_MODEL_PREVIEW); //Ez azért fontos, mert csak így tudja majd megjeleníteni a modelt.TextDrawUseBox(skintd[playerid], true); //Ez is kellhet, hogy rendesen látszódjon az model. Jelenleg kikapcsoltam.TextDrawBoxColor(skintd[playerid], 0x000000FF); //Itt tudod állítani a háttérszínt.TextDrawTextSize(skintd[playerid], 60.0, 40.0); //Itt megadható, mekkora legyen.return 1;}public OnPlayerDisconnect(playerid, reason) {TextDrawHideForPlayer(playerid, skintd[tmp_tdnum[playerid]]);TextDrawDestroy(skintd[playerid]);return 1;}CMD:showmyskin(playerid) {TextDrawSetPreviewModel(skintd[playerid], GetPlayerSkin(playerid));TextDrawShowForPlayer(playerid, skintd[playerid]);tmp_tdnum[playerid] = playerid;return 1;}CMD:showskin(playerid, params[]) {new id;if(sscanf(params, \"u\", id)) return SendClientMessage(playerid, -1, \"Syntax: /showskin [Name]\");if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, \"This player,is not connected!\");TextDrawSetPreviewModel(skintd[id], GetPlayerSkin(id));TextDrawShowForPlayer(playerid, skintd[id]);tmp_tdnum[playerid] = id;return 1;}CMD:hideskin(playerid) return TextDrawHideForPlayer(playerid, skintd[tmp_tdnum[playerid]]), 1;
error 017: undefined symbol \"TextDrawSetSkinPreviewModel\"warning 202: number of arguments does not match definitionerror 001: expected token: \",\", but found \";\"
#include a_samp#include sscanf2#include zcmdnew Text:skintd[MAX_PLAYERS];new tmp_tdnum[MAX_PLAYERS] = {-1, ...};public OnPlayerConnect(playerid){ skintd[playerid] = TextDrawCreate(320.0, 240.0, \"_\"); //Létrehozunk egy textdrawot, láthatatlan szöveggel, a képernyõ közepére. TextDrawFont(skintd[playerid], TEXT_DRAW_FONT_MODEL_PREVIEW); //Ez azért fontos, mert csak így tudja majd megjeleníteni a modelt. TextDrawUseBox(skintd[playerid], true); //Ez is kellhet, hogy rendesen látszódjon az model. TextDrawBoxColor(skintd[playerid], 0x000000FF); //Itt tudod állítani a háttérszínt. TextDrawTextSize(skintd[playerid], 60.0, 40.0); //Itt megadható, mekkora legyen. return 1;}public OnPlayerDisconnect(playerid, reason){ TextDrawHideForPlayer(playerid, skintd[tmp_tdnum[playerid]]); TextDrawDestroy(skintd[playerid]); return 1;}CMD:showmyskin(playerid){ TextDrawSetPreviewModel(skintd[playerid], GetPlayerSkin(playerid)); TextDrawShowForPlayer(playerid, skintd[playerid]); tmp_tdnum[playerid] = playerid;}CMD:showskin(playerid, params[]){ new id; if(sscanf(params, \"u\", id)) return SendClientMessage(playerid, -1, \"Syntax: /showskin [playerid/név]\"); if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, \"This player,is not connected!\"); TextDrawSetPreviewModel(skintd[id], GetPlayerSkin(id)); TextDrawShowForPlayer(playerid, skintd[id]); tmp_tdnum[playerid] = id; return 1;}CMD:hideskin(playerid) return TextDrawHideForPlayer(playerid, skintd[tmp_tdnum[playerid]]);
TextDrawBackgroundColor(skintd[playerid], 0xFFFFFF00);