public OnGameModeInit() //Elindítja a modot{SetGameModeText(\"Szervermód\"); // Ezzel adod meg a Játék módját, amit a kliensben a a \"Mode\"-nál fog mutatni.AddPlayerClass(26, 1719.6196, -1951.3259, 14.1172, 176.2438, 0, 0, 0, 0, 0, 0); // Játékosspawn elhelyezése, id, xcoord, yoord, zoord,return 1;}public OnPlayerRequestClass(playerid, classid){SetPlayerPos(playerid,1719.6196, -1951.3259, 14.1172);SetPlayerCameraPos(playerid,1719.6196, -1951.3259, 14.1172);SetPlayerCameraLookAt(playerid,1719.6196, -1951.3259, 14.1172);
if( pInfo[ playerid ][ spawnx ] != 0 && pInfo[ playerid ][ spawny ] != 0 && pInfo[ playerid ][ spawnz ] != 0) { SetPlayerPos(playerid, pInfo[ playerid ][ spawnx ] , pInfo[ playerid ][ spawny ] , pInfo[ playerid ][ spawnz ]); } else { SetPlayerPos(playerid, -2383.4011,2436.8066,1001.1); SetPlayerFacingAngle(playerid, 94.4580); }
if(PlayerInfo[playerid][pTut] == 0) { //TextDrawShowForPlayer(playerid,lbt); //TextDrawShowForPlayer(playerid,lbb); TextDrawShowForPlayer(playerid,dtrp); gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1; SetPlayerInterior(playerid, 0); PlayerInfo[playerid][pInt] = 0; SetPlayerPos(playerid, -254.8342,2603.1379,62.8582); // Szerintem ezt kell átírni. SetPlayerFacingAngle(playerid, 180); TogglePlayerControllable(playerid, 0); RegistrationStep[playerid] = 1; ClearChatbox(playerid, 10); SendClientMessage(playerid, COLOR_GREEN, \"Üdvözlünk a szerveren! Kérlek, válaszolj a kérdésekre!\"); SendClientMessage(playerid, COLOR_GREEN, \"1. Nemed? (fiú/lány)\"); ClearChatbox(playerid, 2); return 1; }