CMD:goto(playerid, params[]) { if(PlayerData[playerid][Level] < 0) return SendLevelMessage(playerid, 1); if(sscanf(params, \"d\", player1)) return SendClientMessage(playerid, -1, \"{FF0000}Használat: /goto [playerid]\"); if(!IsPlayerConnected(player1)) return SendClientMessage(playerid, -1, \"{FF0000}Rossz játékosazonosító\"); GetPlayerPos(player1, X, Y, Z); SetPlayerInterior(playerid, GetPlayerInterior(player1)); new gotoneve[24]; GetPlayerName(player1,gotoneve,24); new gotostring[128]; format(gotostring,128,\"Odagotoztál %shez.\",gotoneve); SendClientMessage(playerid,0x0ffff,gotostring); SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(player1)); if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), X+3, Y, Z); LinkVehicleToInterior(GetPlayerVehicleID(playerid), GetPlayerInterior(player1)); SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), GetPlayerVirtualWorld(player1)); } else SetPlayerPos(playerid, X+2, Y, Z); return 1; }
CMD:admins(playerid, params[]) { new AdminCount = 0, i = -1, formazas[128 + MAX_PLAYER_NAME + 1]; SendClientMessage(playerid,YELLOW,\"{33AA33}Online Adminok:\"); formazas[0] = EOS; for(;++i < MAX_PLAYERS;) { if((IsPlayerConnected(i)) && (PlayerData[Level] >= 1)) { GetPlayerName(i, formazas, MAX_PLAYER_NAME); format(formazas, sizeof(formazas), \"{FF0000}Név: {cecece}%s {FF0000}Szint: {cecece}%d\", formazas, PlayerData[Level]); SendClientMessage(playerid, YELLOW, formazas); AdminCount++; } } if((AdminCount > 0) && (PlayerData[playerid][Level] < 0)) { format(formazas, sizeof(formazas), \"{FF0000}Jelenleg {cecece}%d {FF0000}admin van a szerveren\", AdminCount); SendClientMessage(playerid, -1, formazas); } if(AdminCount == 0) SendClientMessage(playerid, -1, \"{FF0000}Jelenleg Nincs Admin a Szerveren\"); return 1; } [/quote] wat.$ link=topic=30227.msg323983#msg323983 date=1344440753]A + NEM MARAD EL [/quote]úgylátszik de XDD/lock
CMD:admins(playerid, params[]) { new AdminCount = 0, i = -1, formazas[128 + MAX_PLAYER_NAME + 1]; SendClientMessage(playerid,YELLOW,\"{33AA33}Online Adminok:\"); formazas[0] = EOS; for(;++i < MAX_PLAYERS;) { if((IsPlayerConnected(i)) && (PlayerData[Level] >= 1)) { GetPlayerName(i, formazas, MAX_PLAYER_NAME); format(formazas, sizeof(formazas), \"{FF0000}Név: {cecece}%s {FF0000}Szint: {cecece}%d\", formazas, PlayerData[Level]); SendClientMessage(playerid, YELLOW, formazas); AdminCount++; } } if((AdminCount > 0) && (PlayerData[playerid][Level] < 0)) { format(formazas, sizeof(formazas), \"{FF0000}Jelenleg {cecece}%d {FF0000}admin van a szerveren\", AdminCount); SendClientMessage(playerid, -1, formazas); } if(AdminCount == 0) SendClientMessage(playerid, -1, \"{FF0000}Jelenleg Nincs Admin a Szerveren\"); return 1; }
wat.$ link=topic=30227.msg323983#msg323983 date=1344440753]A + NEM MARAD EL [/quote]úgylátszik de XDD/lock