nekem csak Rcon adminnak van olyan pech
#include <a_samp>#include <zcmd>#define COLOR_RED 0xff0000AAnew Text3D: asz, string[ 128 ], neve[ MAX_PLAYER_NAME ];CMD:adminbelep( playerid, params[] ){ if ( IsPlayerAdmin( playerid ) ) { SetPlayerSkin( playerid, 217 ); asz = Create3DTextLabel( \" Admin Szolgálatban \", COLOR_RED , 0.0, 0.0, 2.0, 40, 0, 0 ); Attach3DTextLabelToPlayer( asz, playerid, 0.0, 0.0, 0.4 ); GetPlayerName( playerid, neve, sizeof( neve ) ); SendClientMessageToAll( COLOR_RED, \"-------------------------------\" ); format( string, sizeof( string ), \"Admin %s szolgálatba lépett!\", neve ); SendClientMessageToAll( COLOR_RED,string ); SendClientMessageToAll( COLOR_RED, \"-------------------------------\" ); } return 1;}
CMD:abelepes(playerid,params[]){ #pragma unused params #define piros 0xFF0000AA new Text3D:label[MAX_PLAYERS];if (AccInfo[playerid][Level] >= 3){ if(AccInfo[playerid][onduty] == 0) { AccInfo[playerid][onduty] = 1; SetPlayerSkin(playerid, 217); Delete3DTextLabel(label[playerid]); label[playerid] = Create3DTextLabel(\"Adminisztrátor\", 0x0000FFAA, 30.0, 40.0, 50.0, 40.0, 0); Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7); PlayerPlaySound(playerid,1057,0.0,0.0,0.0); return SendClientMessage(playerid,green,\"|- Ön Most\\\"Admin Szolgálatban Van\\\" -|\");}else{ AccInfo[playerid][onduty] = 0; SetPlayerSkin(playerid, 250); Delete3DTextLabel(label[playerid]); PlayerPlaySound(playerid,1057,0.0,0.0,0.0); return SendClientMessage(playerid,orange,\"|- Ön Most \\\"Játék Módban Van\\\"-|\");}}return ErrorMessages(playerid, 5);}
#include ladmin#include <zcmd> // Én a zcmd-t használom, de majd persze átírhatod a parancsokat arra, amire használszCMD:abelepes(playerid){#pragma unused paramsnew Text3D:label[MAX_PLAYERS];if(IsPlayerLuxAdmin(playerid) >= 1) //Az \"1\"-et majd átírhatod arra, amely rangtól használhatják az adminok a parancsot{SetPlayerSkin(playerid, 217);Delete3DTextLabel(label[playerid]);label[playerid] = Create3DTextLabel(\"Adminisztrátor\",0x0000FFAA, 30.0, 40.0, 50.0, 40.0, 0);SendClientMessage(playerid,0x0000FFAA,\"Te Admin szolgálatban léptél!\");PlayerPlaySound(playerid,1057,0.0,0.0,0.0);return 1;}else return SendClientMessage(playerid,0xFFFFFFAA,\"Te nem vagy Admin!\");}
C:\\Documents and Settings\\Robi\\Asztal\\Új mappa (3)\\new2.pwn(6) : error 017: undefined symbol \"params\"C:\\Documents and Settings\\Robi\\Asztal\\Új mappa (3)\\new2.pwn(20) : warning 203: symbol is never used: \"strtok\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error.
#include <a_samp>#include <zcmd>#define COLOR_RED 0xff0000AAnew Text3D: asz, string[ 128 ], neve[ MAX_PLAYER_NAME ];CMD:adminbelep( playerid, params[] ){ if ( IsPlayerLuxAdmin( playerid ) >= 1) //egyet átírhatod { SetPlayerSkin( playerid, 217 ); asz = Create3DTextLabel( \" Admin Szolgálatban \", COLOR_RED , 0.0, 0.0, 2.0, 40, 0, 0 ); Attach3DTextLabelToPlayer( asz, playerid, 0.0, 0.0, 0.4 ); GetPlayerName( playerid, neve, sizeof( neve ) ); SendClientMessageToAll( COLOR_RED, \"-------------------------------\" ); format( string, sizeof( string ), \"Admin %s szolgálatba lépett!\", neve ); SendClientMessageToAll( COLOR_RED,string ); SendClientMessageToAll( COLOR_RED, \"-------------------------------\" ); } return 1;}
C:\\Documents and Settings\\Robi\\Asztal\\Új mappa (3)\\new2.pwn(13) : error 017: undefined symbol \"IsPlayerLuxAdmin\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error.
C:\\Documents and Settings\\Robi\\Asztal\\0.3d Teszt szerver\\pawno\\include\\dutils.inc(28) : warning 219: local variable \"string\" shadows a variable at a preceding levelC:\\Documents and Settings\\Robi\\Asztal\\0.3d Teszt szerver\\pawno\\include\\dutils.inc(132) : warning 219: local variable \"string\" shadows a variable at a preceding levelC:\\Documents and Settings\\Robi\\Asztal\\0.3d Teszt szerver\\pawno\\include\\dutils.inc(172) : warning 219: local variable \"string\" shadows a variable at a preceding levelC:\\Documents and Settings\\Robi\\Asztal\\0.3d Teszt szerver\\pawno\\include\\dutils.inc(282) : warning 219: local variable \"string\" shadows a variable at a preceding levelC:\\Documents and Settings\\Robi\\Asztal\\0.3d Teszt szerver\\pawno\\include\\dutils.inc(339) : warning 219: local variable \"string\" shadows a variable at a preceding levelC:\\Documents and Settings\\Robi\\Asztal\\0.3d Teszt szerver\\pawno\\include\\dutils.inc(381) : warning 219: local variable \"string\" shadows a variable at a preceding levelC:\\Documents and Settings\\Robi\\Asztal\\Új mappa (3)\\new2.pwn(27) : warning 203: symbol is never used: \"strtok\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 7 Warnings.
#include <a_samp>#include <zcmd>#include <ladmin>#define COLOR_RED 0xff0000AAnew Text3D: asz, stringz[128], neve[ MAX_PLAYER_NAME ];CMD:adminbelep( playerid, params[] ){ if ( IsPlayerLuxAdmin( playerid ) >= 1) //egyet átírhatod { SetPlayerSkin( playerid, 217 ); asz = Create3DTextLabel( \" Admin Szolgálatban \", COLOR_RED , 0.0, 0.0, 2.0, 40, 0, 0 ); Attach3DTextLabelToPlayer( asz, playerid, 0.0, 0.0, 0.4 ); GetPlayerName( playerid, neve, sizeof( neve ) ); SendClientMessageToAll( COLOR_RED, \"-------------------------------\" ); format( stringz, sizeof( stringz ), \"Admin %s szolgálatba lépett!\", neve ); SendClientMessageToAll( COLOR_RED,stringz ); SendClientMessageToAll( COLOR_RED, \"-------------------------------\" ); } return 1;}
C:\\Documents and Settings\\Robi\\Asztal\\Új mappa (3)\\new2.pwn(27) : warning 203: symbol is never used: \"strtok\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Warning.