CMD:makeadmin ( playerid, params[ ] ){ new string[ 128 ], level, giveplayerid, player[ MAX_PLAYER_NAME ], giveplayer[ MAX_PLAYER_NAME ]; if ( !IsPlayerAdmin ( playerid ) ) return SendClientMessage ( playerid, COLOR_WHITE, \" Nem vagy RCON admin!\" ); if ( sscanf ( params, \"un\", giveplayerid, level ) ) return SendClientMessage ( playerid, COLOR_WHITE, \"Tipp: Használat: /makeadmin [playerid] [level]\" ); if ( !IsPlayerConnected ( giveplayerid ) ) return format ( string, sizeof ( string ), \"%i is not an active player.\", giveplayer ), SendClientMessage ( playerid, 0xE60000FF, string ); { GetPlayerName ( giveplayerid, giveplayer, sizeof ( giveplayer ) ); GetPlayerName ( playerid, player, sizeof ( player ) ); format ( string, sizeof ( string ), \"Admin %s adott neked %d admin szintet.\", player, level ); SendClientMessage ( giveplayerid, 0x00C2ECFF, string ); format ( string, sizeof ( string ), \"Te adtál %s-nak %d admin szintet.\", giveplayer, level ); SendClientMessage ( playerid, 0x00C2ECFF, string ); PlayerInfo [ giveplayerid ] [ Adminszint ] = level; } return 1;}
if ( !sscanf ( params, \"un\", giveplayerid, level ) ) return SendClientMessage ( playerid, COLOR_WHITE, \"Tipp: Használat: /makeadmin [playerid] [level]\" );
if ( sscanf ( params, \"un\", giveplayerid, level ) ) return SendClientMessage ( playerid, COLOR_WHITE, \"Tipp: Használat: /makeadmin [playerid] [level]\" );
C:\\Users\\Zsombi\\Desktop\\szero\\gamemodes\\rpg.pwn(1850) : warning 203: symbol is never used: \"IsNumeric\"C:\\Users\\Zsombi\\Desktop\\szero\\gamemodes\\rpg.pwn(1850) : warning 203: symbol is never used: \"ReturnUser\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Warnings.
dini_Int(fájl, \"AdminLVL\", level);