[code]public OnFilterScriptExit()
{
return 1;
}
#else
new tor[6];
new sfpdenter;
new sfpdexit;
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
Alles anzeigen
public OnGameModeInit()
{
sfpdexit=CreatePickup(1318,1,-1605.4875,710.2791,13.8672);
sfpdenter=CreatePickup(1318,1,-1605.6023,712.7159,13.8714);
DisableInteriorEnterExits();
SetGameModeText("German_Reallife_Script");
Alles anzeigen
Das sind die tore und loggin/register system
tor[4]r=CreateObject(2456, -1524.8054199219, 1011.8588256836, 6.1875, 0, 0, 0);
tor[3]=CreateObject(975, -2864.41796875, 469.796875, 5.5382838249207, 0, 0, 83.995971679688);
tor[4]=CreateObject(3049, -1524.6706542969, 465.69552612305, 8.4296340942383, 0, 0, 270);
tor[2]=CreateObject(3049, -1542.921875, 460.91555786133, 8.4296340942383, 0, 0, 180);
tor[2]=CreateObject(3049, -1547.3454589844, 461.12658691406, 8.4296340942383, 0, 0, 178);
tor[5]=CreateObject(975, -1635.5960693359, 673.78649902344, -179.63551330566, 0, 0, 0);
tor[0]CreateObject(2933, -1635.8184814453, 688.59759521484, 7.903115272522, 0, 0, 0);
tor[0]=CreateObject(2933, -1627.4034423828, 688.56628417969, 7.903115272522, 0, 0, 0);
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid))return 1;
new Spielerdatei[64];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
if(dini_Exists(Spielerdatei))
{
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Dein Account wurde gefunden. Gib bitte das Passwort ein.","Login","Abbrechen");
}
else
{
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrieren","Gib bitte das gewünschte Passwort ein:","Register","Abbrechen");
}
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
if(GetPVarInt(playerid,"loggin")==1)
{
SpielerSpeichern(playerid);
}
return 1;
}
Alles anzeigen
public OnPlayerText(playerid, text[])
{
return 1;
{
ocmd:auf(playerid,params[])
}
if(IsPlayerInRangeOfPoint(playerid,10, -1627.4034423828, 688.56628417969, 7.903115272522))return SendClientMessage(playerid,ROT,"Du bist nicht in der nähe!");
MoveObject(tor,-1627.4034423828, 688.56628417969, 7.903115272522,5);
return 1;
{
ocmd:zu(playerid,params[])
}
if(IsPlayerInRangeOfPoint(playerid,10, -1627.4034423828, 688.56628417969, 7.903115272522))return SendClientMessage(playerid,ROT,"Du bist nicht in der nähe!");
MoveObject(tor,-1627.4034423828, 688.56628417969, 7.903115272522-10,5);
return 1;
}
Alles anzeigen