C:\Users\Johny\Desktop\HRL SERVER New\gamemodes\HRL.pwn(529) : warning 202: number of arguments does not match definition
C:\Users\Johny\Desktop\HRL SERVER New\gamemodes\HRL.pwn(632) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\Johny\Desktop\HRL SERVER New\gamemodes\HRL.pwn(632) : warning 215: expression has no effect
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
/* ///////////////////////////////////////////////////////////////////////////////////////
/////// Dieser Script wurde von Crazy_Brother und JohnyLetsPlay Editiert! ///////
/////// Dieser Script gehört ganz alleine ///////
/////// dem Server [HRL]HashtagRealLife!! ///////
/////// Die Benutzung unbefugter wird Strafrechtlich ///////
/////// Verfolgt !! ///////
/////// Credits gehen an die Entwickler. ///////
///////////////////////////////////////////////////////////////////////////////////////
.________________________________[HRL]HashtagRealLife___________________________.
|_______________________________________________________________________________|
| |
| .----------------. .----------------. .----------------. |
| | .--------------. || .--------------. || .--------------. | |
| | | _ _ | || | _____ | || | _ | | |
| | | | | | | | || | | _ \ | || | | | | | |
| | | | |__| | | || | | |_| | | || | | | | | |
| | | | __ | | || | | __ / | || | | | | | |
| | | | | | | | || | | | \ \ | || | | |____ | | |
| | | |_| |_| | || | |_| \_\ | || | |______| | | |
| | | | || | | || | | | |
| | '--------------' || '--------------' || '--------------' | |
| '----------------' '----------------' '----------------' | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|_______________________________________________________________________________|
|______________________________[HRL]HashtagRealLife_____________________________|
Dieses Script wurde Editiert von:
Crazy_Brother und JohnyLetsPlay
||||| Version 99999999999999.9 |||||
||||| © 2011-2015 |||||
***********************************************
***** http://Johny-ist-der.GEILSTE.de/ *****
***********************************************
________________________________________________________________________________________________________
________________________________________________________________________________________________________
*/
//Includes
#include <a_samp>
#include <streamer>
#include <ocmd>
#include <sscanf>
#include <dini>
#include <MD5>
//Dialoge
#define DIALOG_REGISTER1 0
#define DIALOG_REGISTER2 1
#define DIALOG_REGISTER3 2
#define DIALOG_REGISTER4 3
#define DIALOG_LOGIN1 4
#define DIALOG_NOPW1 5
#define DIALOG_NOPW2 6
#define DIALOG_WRONGPW 7
//Farben
#define GRUEN 0x37A400FF
#define ROT 0xFF0005FF
#define GELB 0xFFFF00FF
#define BLAU 0x0A00FFFF
#define PINK 0xFF00C3FF
#define LILA 0xB400FFFF
#define SCHWARZ 0x0F0000FF
#define WEIS 0xFEFEFEFF
#define ORANGE 0xFF6400FF
#define TUERKIS 0x00FFFAFF
//DCMD
//Defines
// news
//Enums
enum Info
{
sex, //0= männlich 1=weiblich
age, // alter
logged, // Ob der Spieler connected ist
}
//news
new pInfo[MAX_PLAYERS][Info];
//forwards
forward OnPlayerRegister(playerid, password[]);
main()
{
print("\n----------------------------------");
print(" [HRL]HashtagRealLife");
print("----------------------------------\n");
}
public OnGameModeInit()
{
SetGameModeText("[HRL]HashtagRealLife");
AddPlayerClass(0, 369.6736,-2045.5717,7.6719,359.4333, 0, 0, 0, 0, 0, 0);
//Pickups
//NoobspawnPickups
CreateDynamicPickup(1247,1,369.8690,-2042.5496,7.6719,0); //roller
CreateDynamicPickup(1247,1,372.1254,-2044.2802,7.6719,0); //einweisung
CreateDynamicPickup(1247,1,367.4543,-2044.4039,7.6719,0); //serverinfo
//3DText
//Noobspawn3DText
Create3DTextLabel("Mit /roller kanst du dir\nein Neulingsfahrzeug spawnen!",PINK,369.8690,-2042.5496,7.6719,10.0,0);
Create3DTextLabel("Mit /einweisung kanst du\ndir ein Admin zur hilfe holen!",PINK,372.1254,-2044.2802,7.6719,10.0,0);
Create3DTextLabel("Mit /serverinfo siehst du Infos über den Server!",PINK,367.4543,-2044.4039,7.6719,10.0,0);
//Objekte
//Noobspawn (by Johny)
CreateDynamicObject(2935, 390.67072, -2017.88794, 8.22203, 0.00000, 0.00000, -90.12005);
CreateDynamicObject(2935, 390.66052, -2018.69678, 11.11556, 0.00000, 0.00000, -90.12005);
CreateDynamicObject(2935, 390.65067, -2019.48816, 14.00723, 0.00000, 0.00000, -90.12005);
CreateDynamicObject(2935, 390.65912, -2015.59338, 11.12197, 0.00000, 0.00000, -90.12005);
CreateDynamicObject(2935, 390.64316, -2020.29407, 16.90061, 0.00000, 0.00000, -90.12005);
CreateDynamicObject(2935, 390.64493, -2021.80945, 11.12197, 0.00000, 0.00000, -90.12005);
CreateDynamicObject(2935, 390.62814, -2021.11658, 19.80088, 0.00000, 0.00000, -90.12005);
CreateDynamicObject(2935, 390.61758, -2021.93567, 22.69443, 0.00000, 0.00000, -90.12005);
CreateDynamicObject(2935, 390.62683, -2018.82288, 22.69443, 0.00000, 0.00000, -90.12005);
CreateDynamicObject(2935, 390.60861, -2022.71680, 25.59423, 0.00000, 0.00000, -90.12005);
CreateDynamicObject(2935, 390.61169, -2025.03748, 22.69443, 0.00000, 0.00000, -90.12005);
CreateDynamicObject(2935, 390.64487, -2024.92749, 11.12197, 0.00000, 0.00000, -90.12005);
CreateDynamicObject(2935, 390.62473, -2028.04944, 11.12197, 0.00000, 0.00000, -90.12005);
CreateDynamicObject(2935, 390.59460, -2031.15625, 11.12197, 0.00000, 0.00000, -90.12005);
CreateDynamicObject(2935, 390.60962, -2030.44666, 8.22322, 0.00000, 0.00000, -90.12005);
CreateDynamicObject(2935, 390.61270, -2031.95349, 14.01748, 0.00000, 0.00000, -90.12005);
CreateDynamicObject(2935, 390.60098, -2032.73328, 16.92595, 0.00000, 0.00000, -90.12005);
CreateDynamicObject(2935, 390.60910, -2033.54211, 19.82520, 0.00000, 0.00000, -90.12005);
CreateDynamicObject(2935, 390.60910, -2033.54211, 19.82520, 0.00000, 0.00000, -90.12005);
CreateDynamicObject(2935, 390.59982, -2034.34753, 22.72896, 0.00000, 0.00000, -90.12005);
CreateDynamicObject(2935, 390.60703, -2031.22888, 22.72896, 0.00000, 0.00000, -90.12005);
CreateDynamicObject(2935, 390.59918, -2028.16956, 22.72896, 0.00000, 0.00000, -90.12005);
CreateDynamicObject(2935, 390.58752, -2035.13843, 25.62148, 0.00000, 0.00000, -90.12005);
CreateDynamicObject(2935, 390.58206, -2037.45947, 22.72896, 0.00000, 0.00000, -90.12005);
CreateDynamicObject(2935, 390.59024, -2034.25928, 11.12197, 0.00000, 0.00000, -90.12005);
CreateDynamicObject(1281, 376.35812, -2044.27307, 7.61960, 0.00000, 0.00000, -1.44000);
CreateDynamicObject(1281, 376.37061, -2040.09631, 7.61960, 0.00000, 0.00000, -1.44000);
CreateDynamicObject(1281, 376.28421, -2035.69336, 7.61960, 0.00000, 0.00000, -1.44000);
CreateDynamicObject(1281, 376.29193, -2031.36597, 7.61960, 0.00000, 0.00000, -1.44000);
CreateDynamicObject(1281, 376.17755, -2026.92725, 7.61960, 0.00000, 0.00000, -1.44000);
CreateDynamicObject(1255, 372.48398, -2048.08325, 7.40270, 0.00000, 0.00000, 118.97999);
CreateDynamicObject(1255, 369.56705, -2047.98657, 7.40270, 0.00000, 0.00000, 118.97999);
CreateDynamicObject(1255, 366.47229, -2048.06055, 7.40270, 0.00000, 0.00000, 118.97999);
CreateDynamicObject(1281, 362.77582, -2044.10022, 7.61960, 0.00000, 0.00000, -1.44000);
CreateDynamicObject(1281, 362.81448, -2039.92603, 7.61960, 0.00000, 0.00000, -1.44000);
CreateDynamicObject(1281, 362.96646, -2022.44067, 7.61960, 0.00000, 0.00000, -1.44000);
CreateDynamicObject(1281, 362.95715, -2018.17957, 7.61960, 0.00000, 0.00000, -1.44000);
CreateDynamicObject(1281, 376.30298, -2022.37903, 7.61960, 0.00000, 0.00000, -1.44000);
CreateDynamicObject(1281, 376.35724, -2017.89929, 7.61960, 0.00000, 0.00000, -1.44000);
CreateDynamicObject(3461, 387.19812, -2031.96118, 11.15733, -0.60000, -23.82001, 0.00000);
CreateDynamicObject(3461, 387.32675, -2019.50134, 11.15733, -0.60000, -23.82001, 0.00000);
CreateDynamicObject(3461, 387.26779, -2022.71045, 22.72953, -0.60000, -23.82001, 0.00000);
CreateDynamicObject(3461, 387.32269, -2035.16211, 22.72953, -0.60000, -23.82001, 0.00000);
CreateDynamicObject(3461, 393.95181, -2035.13696, 22.72953, -0.60000, -23.82001, -174.83997);
CreateDynamicObject(3461, 394.01260, -2022.78992, 22.72953, -0.60000, -23.82001, -174.83997);
CreateDynamicObject(3461, 394.01855, -2019.47327, 11.09521, -0.60000, -23.82001, -174.83997);
CreateDynamicObject(3461, 393.95490, -2031.99329, 11.09521, -0.60000, -23.82001, -174.83997);
CreateDynamicObject(8397, 369.54935, -2002.48254, 16.84021, 0.00000, 0.00000, 0.00000);
CreateDynamicObject(3461, 374.49994, -1995.91211, 8.82867, -0.60000, -23.82001, -87.95997);
CreateDynamicObject(3461, 364.56259, -1995.92993, 8.82867, -0.60000, -23.82001, -87.95997);
CreateDynamicObject(3461, 364.55280, -2009.06921, 8.82867, -0.60000, -23.82001, 93.84001);
CreateDynamicObject(3461, 374.53442, -2009.09485, 8.82867, -0.60000, -23.82001, 93.84001);
CreateDynamicObject(1224, 386.25980, -2079.74976, 7.40814, 0.00000, 0.00000, -16.38000);
CreateDynamicObject(1224, 378.31308, -2075.92163, 7.40814, 0.00000, 0.00000, 22.14000);
CreateDynamicObject(1224, 391.73706, -2073.26636, 7.40814, 0.00000, 0.00000, 44.28001);
CreateDynamicObject(3615, 403.31610, -2076.89380, 8.72406, 360.27847, -0.54000, -0.21841);
CreateDynamicObject(13816, 365.17892, -2070.13574, 4.52228, 0.00000, 0.00000, 0.06000);
CreateDynamicObject(2395, 373.65802, -2049.27954, 6.82512, 0.00000, 0.00000, -179.75977);
CreateDynamicObject(2395, 369.95883, -2049.29346, 6.82512, 0.00000, 0.00000, -179.75977);
CreateDynamicObject(2395, 366.23096, -2049.30371, 6.82512, 0.00000, 0.00000, -179.75977);
CreateDynamicObject(2395, 374.26096, -2052.57593, 6.82512, 0.00000, 0.00000, -268.80032);
CreateDynamicObject(2395, 374.34991, -2056.25586, 6.82512, 0.00000, 0.00000, -268.80032);
CreateDynamicObject(2395, 374.43024, -2059.96240, 6.82512, 0.00000, 0.00000, -268.80032);
CreateDynamicObject(2395, 362.49854, -2049.32495, 6.82512, 0.00000, 0.00000, -179.75977);
CreateDynamicObject(2395, 358.83270, -2049.34082, 6.82512, 0.00000, 0.00000, -179.75977);
CreateDynamicObject(2395, 355.11188, -2049.35767, 6.82512, 0.00000, 0.00000, -179.75977);
CreateDynamicObject(2395, 352.73355, -2049.37402, 6.82512, 0.00000, 0.00000, -179.75977);
CreateDynamicObject(971, 383.92801, -2059.60449, 6.70920, 0.00000, 0.00000, 0.00000);
CreateDynamicObject(1215, 380.19040, -2049.40649, 7.37507, 0.00000, 0.00000, 0.00000);
CreateDynamicObject(1215, 380.50366, -2051.66504, 7.37507, 0.00000, 0.00000, 0.00000);
CreateDynamicObject(1215, 380.74933, -2054.19873, 7.37507, 0.00000, 0.00000, 0.00000);
CreateDynamicObject(1215, 380.97531, -2056.71143, 7.37507, 0.00000, 0.00000, 0.00000);
CreateDynamicObject(1215, 380.98773, -2058.97314, 7.37507, 0.00000, 0.00000, 0.00000);
CreateDynamicObject(1215, 377.78244, -2049.38379, 7.37507, 0.00000, 0.00000, 0.00000);
CreateDynamicObject(1215, 375.38116, -2049.36328, 7.37507, 0.00000, 0.00000, 0.00000);
CreateDynamicObject(1215, 386.69305, -2049.40991, 7.37507, 0.00000, 0.00000, 0.00000);
CreateDynamicObject(1215, 380.55432, -2042.45947, 7.37507, 0.00000, 0.00000, 0.00000);
CreateDynamicObject(1215, 380.41577, -2031.06824, 7.37507, 0.00000, 0.00000, 0.00000);
CreateDynamicObject(1215, 380.46988, -2017.30078, 7.37507, 0.00000, 0.00000, 0.00000);
CreateDynamicObject(627, 374.65802, -2048.32104, 8.62513, 0.00000, 0.00000, 0.00000);
CreateDynamicObject(627, 380.77219, -2025.46716, 8.62513, 0.00000, 0.00000, 0.00000);
CreateDynamicObject(627, 380.64621, -2036.75964, 8.62513, 0.00000, 0.00000, 0.00000);
CreateDynamicObject(627, 365.05206, -2048.09106, 8.62513, 0.00000, 0.00000, 0.00000);
CreateDynamicObject(643, 362.58087, -2027.98596, 7.30582, 0.00000, 0.00000, 0.00000);
CreateDynamicObject(643, 362.48135, -2032.91211, 7.30582, 0.00000, 0.00000, 0.00000);
CreateDynamicObject(3515, 390.59003, -2041.42163, 7.71969, 0.00000, 0.00000, 0.00000);
CreateDynamicObject(9833, 390.11469, -2041.40063, 11.71160, 0.00000, 0.00000, 0.00000);
CreateDynamicObject(2395, 374.17999, -2057.22461, 6.82512, 0.00000, 0.00000, -448.73920);
CreateDynamicObject(2395, 374.09607, -2053.51587, 6.82512, 0.00000, 0.00000, -448.73920);
CreateDynamicObject(2395, 373.99673, -2049.91479, 6.82512, 0.00000, 0.00000, -448.73920);
CreateDynamicObject(2395, 370.88327, -2049.49390, 6.82512, 0.00000, 0.00000, -359.75916);
CreateDynamicObject(2395, 367.17657, -2049.51733, 6.82512, 0.00000, 0.00000, -359.75916);
CreateDynamicObject(2395, 363.46524, -2049.53442, 6.82512, 0.00000, 0.00000, -359.75916);
CreateDynamicObject(2395, 359.77069, -2049.55151, 6.82512, 0.00000, 0.00000, -359.75916);
CreateDynamicObject(2395, 356.08453, -2049.56787, 6.82512, 0.00000, 0.00000, -359.75916);
CreateDynamicObject(2395, 352.37076, -2049.57495, 6.82512, 0.00000, 0.00000, -359.75916);
CreateDynamicObject(2395, 349.97632, -2049.57324, 6.82512, 0.00000, 0.00000, -359.75916);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
return 1;
}
public OnPlayerConnect(playerid)
{
SetPlayerPos(playerid,1380.3833,-2.5368,1000.9191);
TogglePlayerControllable(playerid,0);
SetPlayerCameraLookAt(playerid, 154.25195, -2006.77258, 33.36935-10);
SetPlayerCameraPos(playerid,151.1263,-1873.5780,38.7770);
new pname[MAX_PLAYER_NAME], path[200];
GetPlayerName(playerid, pname, sizeof(pname));
format(path, sizeof(path), "/spieler/%s.ini", pname);
if(!dini_Exists(path))
{
// Wenn der Spieler nicht Registriert ist
ShowPlayerDialog(playerid, DIALOG_REGISTER1, DIALOG_STYLE_INPUT, "Register", "Your Password:", "OK", "Cancel");
}
else
{
//Wenn der Spieler Registriert ist
ShowPlayerDialog(playerid, DIALOG_LOGIN1, DIALOG_STYLE_INPUT, "Login", "Your Password", "OK", "Cancel");
}
SendClientMessage(playerid,GRUEN,"-------------------------------------------------");
SendClientMessage(playerid,GRUEN,"SERVER: Herzlich Willkommen auf unserem Server :)");
SendClientMessage(playerid,GRUEN,"SERVER: Euer [HRL] ServerTeam :)");
SendClientMessage(playerid,GRUEN,"-------------------------------------------------");
//Objekte Removen (Removecodes)
//NoobSpawn (by Johny)
RemoveBuildingForPlayer(playerid, 6463, 389.7734, -2028.4688, 19.8047, 0.25);
RemoveBuildingForPlayer(playerid, 6464, 379.0625, -2065.0234, 11.7969, 0.25);
RemoveBuildingForPlayer(playerid, 3751, 389.8750, -2028.5000, 32.2266, 0.25);
RemoveBuildingForPlayer(playerid, 3751, 389.8750, -2021.6406, 29.9297, 0.25);
RemoveBuildingForPlayer(playerid, 3751, 389.8750, -2017.4531, 24.0313, 0.25);
RemoveBuildingForPlayer(playerid, 3751, 389.8750, -2017.4297, 16.8516, 0.25);
RemoveBuildingForPlayer(playerid, 3751, 389.8750, -2021.6328, 10.9844, 0.25);
RemoveBuildingForPlayer(playerid, 3751, 389.8750, -2028.5156, 8.7813, 0.25);
RemoveBuildingForPlayer(playerid, 3751, 389.8750, -2035.3984, 10.9453, 0.25);
RemoveBuildingForPlayer(playerid, 3751, 389.8750, -2039.6406, 16.8438, 0.25);
RemoveBuildingForPlayer(playerid, 3751, 389.8750, -2039.6563, 24.1094, 0.25);
RemoveBuildingForPlayer(playerid, 3751, 389.8750, -2035.3828, 29.9531, 0.25);
RemoveBuildingForPlayer(playerid, 1529, 399.0078, -2066.8828, 11.2344, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 360.4531, -2086.6719, 7.3750, 0.25);
RemoveBuildingForPlayer(playerid, 6283, 379.0625, -2065.0234, 11.7969, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 379.5938, -2055.1016, 7.3750, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 386.5703, -2061.9531, 7.3750, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 379.5938, -2042.4922, 7.3750, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 379.5938, -2030.3359, 7.3750, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 379.5938, -2016.7500, 7.3750, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 386.5703, -2049.3516, 7.3750, 0.25);
RemoveBuildingForPlayer(playerid, 3752, 389.8750, -2039.6406, 16.8438, 0.25);
RemoveBuildingForPlayer(playerid, 3752, 389.8750, -2039.6563, 24.1094, 0.25);
RemoveBuildingForPlayer(playerid, 6298, 389.7734, -2028.4688, 19.8047, 0.25);
RemoveBuildingForPlayer(playerid, 6461, 389.7734, -2028.5000, 20.1094, 0.25);
RemoveBuildingForPlayer(playerid, 3752, 389.8750, -2028.5000, 32.2266, 0.25);
RemoveBuildingForPlayer(playerid, 3752, 389.8750, -2021.6406, 29.9297, 0.25);
RemoveBuildingForPlayer(playerid, 3752, 389.8750, -2017.4531, 24.0313, 0.25);
RemoveBuildingForPlayer(playerid, 3752, 389.8750, -2017.4297, 16.8516, 0.25);
RemoveBuildingForPlayer(playerid, 3752, 389.8750, -2021.6328, 10.9844, 0.25);
RemoveBuildingForPlayer(playerid, 3752, 389.8750, -2028.5156, 8.7813, 0.25);
RemoveBuildingForPlayer(playerid, 3752, 389.8750, -2035.3984, 10.9453, 0.25);
RemoveBuildingForPlayer(playerid, 3752, 389.8750, -2035.3828, 29.9531, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 400.3906, -2086.4219, 7.3750, 0.25);
RemoveBuildingForPlayer(playerid, 4240, 496.4141, -2012.1953, -15.5469, 0.25);
RemoveBuildingForPlayer(playerid, 4450, 496.4141, -2012.1953, -15.5469, 0.25);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new pname[MAX_PLAYER_NAME], path[200];
GetPlayerName(playerid, pname, sizeof(pname));
format(path, sizeof(path), "/spieler/%s.ini", pname);
dini_IntSet(path, "sex", pInfo[playerid][sex]);
dini_IntSet(path, "age", pInfo[playerid][age]);
pInfo[playerid][logged] = 0;
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid,369.6736,-2045.5717,7.6719);
SetPlayerFacingAngle(playerid,359.4333);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
SendClientMessage(playerid,GRUEN,"Du bist Tot!");
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
//Komandos
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new pname[MAX_PLAYER_NAME], path[200];
GetPlayerName(playerid, pname, sizeof(pname));
format(path, sizeof(path), "/spieler/%s.ini", pname);
switch(dialogid)
{
case DIALOG_REGISTER1:
{
if(!response)
{
Kick(playerid);
}
else
{
new pwlength = strlen(inputtext);
if(pwlength > 0)
{
dini_Create(path); //i
dini_Set(path, "password", inputtext);
ShowPlayerDialog(playerid, DIALOG_REGISTER2, DIALOG_STYLE_LIST, "male\r\female", "OK", "Cancel");
}
else
{
ShowPlayerDialog(playerid, DIALOG_NOPW1, DIALOG_STYLE_MSGBOX, "Register", "You have to enter a password!", "OK", "Cancel");
}
}
}
case DIALOG_REGISTER2:
{
if(!response)
{
dini_Remove(path);
Kick(playerid);
}
else
{
dini_IntSet(path, "sex", listitem);
ShowPlayerDialog(playerid, DIALOG_REGISTER3, DIALOG_STYLE_INPUT, "Register", "Your Age?", "OK", "Cancel");
}
}
case DIALOG_REGISTER3:
{
if(!response)
{
dini_Remove(path);
Kick(playerid);
}
else
{
dini_Set(path, "age", inputtext);
ShowPlayerDialog(playerid, DIALOG_REGISTER4, DIALOG_STYLE_MSGBOX, "Register", "Your Register is complete!", "OK", "OK");
}
}
case DIALOG_REGISTER4:
{
pInfo[playerid][sex] = dini_Int(path, "sex");
pInfo[playerid][age] = dini_Int(path, "age");
pInfo[playerid][logged] = 1;
}
case DIALOG_LOGIN1:
{
if(!response)
{
Kick(playerid);
}
else
{
new pwlength = strlen(inputtext);
if(pwlength > 0)
{
new pw[200];
format(pw, sizeof(pw), "%s", dini_Get(path, "password"));
if(strcmp(inputtext, pw) == 0)
{
pInfo[playerid][sex] = dini_Int(path, "sex");
pInfo[playerid][age] = dini_Int(path, "age");
pInfo[playerid][logged] = 1;
}
else
{
ShowPlayerDialog(playerid, DIALOG_WRONGPW, DIALOG_STYLE_MSGBOX, "Login", "Wrong Password!", "OK", "Cancel");
}
}
else
{
ShowPlayerDialog(playerid, DIALOG_NOPW2, DIALOG_STYLE_MSGBOX, "Login", "SYou have to enter a password!", "OK", "Cancel");
}
}
}
case DIALOG_NOPW1:
{
if(!response)
{
Kick(playerid);
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER1, DIALOG_STYLE_INPUT, "Register", "Your Password", "OK", "Cancel");
}
}
case DIALOG_NOPW2:
{
if(!response)
{
Kick(playerid);
}
else
{
ShowPlayerDialog(playerid, DIALOG_LOGIN1, DIALOG_STYLE_INPUT, "Login", "Your Password:", "OK", "Abbrechen");
}
}
case DIALOG_WRONGPW:
{
if(!response)
{
Kick(playerid);
}
else
{
ShowPlayerDialog(playerid, DIALOG_LOGIN1, DIALOG_STYLE_INPUT, "Login", "Your Password:", "OK", "Cancel");
}
}
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}