new ASZ;
CMD:parancs(playerid){if(GetPlayerSkin(playerid) == 217){ ASZ = Create3DTextLabel(\"Admin Szolgálatban\", 0xE60000FF, 0.0, 0.0, 2.0, 40, 0, 0); Attach3DTextLabelToPlayer(ASZ, playerid, 0.0, 0.0, 0.4);}else{}return 1;}
#include < a_samp >new Text3D:AdminSzolgalat[MAX_PLAYERS];new bool:ASzolgalat[MAX_PLAYERS];new One[MAX_PLAYERS];publicOnPlayerConnect( playerid ){One[playerid] = SetTimerEx( \"SkinCheck\", 1000, true, \"i\", playerid );return 1;}publicOnPlayerDisconnect( playerid ){KillTimer( One[playerid] );return 1;}forward SkinCheck( playerid );public SkinCheck( playerid ){if( GetPlayerSkin(playerid) == 217 && IsPlayerAdmin(playerid) ){ if( ASzolgalat[playerid] == false ) { AdminSzolgalat[playerid] = Create3DTextLabel( \"Admin szolgálatban\", 0xE60000FF, 0.0, 0.0, 2.0, 40, 0, 0 ); Attach3DTextLabelToPlayer( AdminSzolgalat[playerid], playerid, 0.0, 0.0, 0.4 ); ASzolgalat[playerid] = true;}}else{Delete3DTextLabel( One[playerid] ); ASzolgalat[playerid] = false;}}
#include < a_samp >#include < zcmd >forward OnPlayerSkinChange( playerid, skinid );stockSetPlayerSkin_E( playerid, skinid){SetPlayerSkin( playerid, skinid );CallLocalFunction( \"OnPlayerSkinChange\", \"ii\", playerid, skinid );return 1;}#define SetPlayerSkin SetPlayerSkin_E/* ======================================== */new Text3D:AdminSzolgalat[MAX_PLAYERS];new bool:ASzolgalat[MAX_PLAYERS];publicOnPlayerSkinChange( playerid, skinid ){if( skinid == 217 ){ if( !IsPlayerAdmin(playerid) ) { SendClientMessage( playerid, -1, \"Használatához adminnak kell lenned!\" ); SetPlayerSkin( playerid, 0 ); return 1;} if( ASzolgalat[playerid] == false ) { AdminSzolgalat[playerid] = Create3DTextLabel( \"Admin szolgálatban\", 0xE60000FF, 0.0, 0.0, 2.0, 40, 0, 0 ); Attach3DTextLabelToPlayer( AdminSzolgalat[playerid], playerid, 0.0, 0.0, 0.4 ); ASzolgalat[playerid] = true;}else{ Delete3DTextLabel( AdminSzolgalat[playerid] ); ASzolgalat[playerid] = false;}}return 1;}