Hallo Community,
Ich biete hiermit mein nicht fertiges unbekanntes Script.
Unbekannt weil ich nicht weis ob ich es fuer ein Reallife/DM/Stunt Script nehmen soll.
Falls ihr mir vlt ein wenig helfen koenntet waere es auch nett.
Habe mich bemueht etwas drauss zu machen aber packe das TUT und Register/Login System nicht gebacken.
Naja wer es haben will/editieren will ist euch ueberlassen aber wuerde mich echt ueber hilfe freuen
ZitatAlles anzeigen
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#include <dini>
#include <ocmd>
//Farben
#define COLOR_RED 0xFF0000FF
#define COLOR_YELLOW 0xFFFF00FF
#define COLOR_BLUE 0x0000FFFF
#define COLOR_GREEN 0x00FF00FF
#define COLOR_LILA 0xFF00FFFF
#define COLOR_ORANGE 0xFFB400FF
#if defined FILTERSCRIPT
main()
{
print("\n----------------------------------");
print(" Selfmade v0.1");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("GNL Selfmade v1.0");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,COLOR_ORANGE,"Hallo und herzlich Willkommen auf dem");
SendClientMessage(playerid,COLOR_ORANGE,"German-Night-Life Server");
SendClientMessage(playerid,COLOR_ORANGE,"Dieses Script ist ein Selfmade von BHF");
SendClientMessage(playerid,COLOR_GREEN,"Besuch doch unser Forum");
SendClientMessage(playerid,COLOR_RED,"www.samp-mapping.forumprofi.de");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid,1214.5663,-904.7918,48.0557);
SetPlayerFacingAngle(playerid,187.3617);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
SendClientMessage(playerid,COLOR_RED,"Du bist gestorben.");
SendClientMessage(playerid,COLOR_RED,"Nun spawnst du wieder am BSN");
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/help", cmdtext, true, 10) ==0)
{
SendClientMessage(playerid,COLOR_GREEN,"Befehle:");
SendClientMessage(playerid,COLOR_GREEN,"/regeln,/serverinfo,/admins");
SendClientMessage(playerid,COLOR_BLUE,"Port Befehle:");
SendClientMessage(playerid,COLOR_GREEN,"/gotols,/gotoammu,/gotogs,/gotobsn");
SendClientMessage(playerid,COLOR_GREEN,"Weitere Befehle folgen noch");
return 1;
}
if (strcmp("/gotols", cmdtext, true, 10) ==0)
{
SetPlayerPos(playerid,1540.9467,-1675.0538,13.5516);
SendClientMessage(playerid,COLOR_LILA,"Du hast dich nach LS geportet");
return 1;
}
if (strcmp("/gotogs", cmdtext, true, 10) ==0)
{
SetPlayerPos(playerid,2486.2859,-1665.8632,13.3438);
SendClientMessage(playerid,COLOR_LILA,"Du hast dich zur Grove-Street geportet");
return 1;
}
if (strcmp("/gotoammu", cmdtext, true, 10) ==0)
{
SetPlayerPos(playerid,1365.0448,-1277.5452,13.5469);
SendClientMessage(playerid,COLOR_LILA,"Du hast dich zum Ammunation geportet");
return 1;
}
if (strcmp("/admins", cmdtext,true, 10) ==0)
{
SendClientMessage(playerid,COLOR_BLUE,"BHF ist der einzige Admin auf diesem Server");
return 1;
}
if (strcmp("/gotobsn", cmdtext,true, 10) ==0)
{
SetPlayerPos(playerid,1214.5663,-904.7918,48.0557);
SendClientMessage(playerid,COLOR_LILA,"Du hast dich zum BSN geportet");
return 1;
}
if(strcmp("/regeln", cmdtext,true, 10) ==0)
{
SendClientMessage(playerid,COLOR_BLUE,"Auf diesem Server sind alle Mods erlaubt");
SendClientMessage(playerid,COLOR_BLUE,"Cheats/Hacks sind erlaubt");
SendClientMessage(playerid,COLOR_BLUE,"Das einziege was verboten ist, ist ein Fly-Hack/Mod");
SendClientMessage(playerid,COLOR_BLUE,"Fuer mehr Infos besuch unser Forum");
SendClientMessage(playerid,COLOR_BLUE,"Forum: mapping-samp.forumprofi.de");
return 1;
}
if(strcmp("/serverinfo", cmdtext,true, 10) ==0)
{
SendClientMessage(playerid,COLOR_ORANGE,"Das GNL-Team sucht immernoch einen Scripter");
SendClientMessage(playerid,COLOR_ORANGE,"Dazu suchen wir auch Mietglieder fuer unser Mapping-Team");
SendClientMessage(playerid,COLOR_ORANGE,"Die aktuellen Admins sind BHF, Tiizii, ElvedinZ");
SendClientMessage(playerid,COLOR_ORANGE,"Alle Infos sind im Forum zu sehen");
SendClientMessage(playerid,COLOR_ORANGE,"FORUM: http://www.samp-mapping.forumprofi.de");
return 1;
}
if(strcmp("/kick", cmdtext,true, 10) ==0)
{
SendClientMessage(playerid,COLOR_RED,"Da du kein Admin bist kannst du nicht kicken");
return 1;
}
if(strcmp("/ban", cmdtext,true, 10) ==0)
{
SendClientMessage(playerid,COLOR_RED,"Da du kein Admin bist kannst du nicht bannen");
return 1;
}
if(strcmp("/bann", cmdtext,true, 10) ==0)
{
SendClientMessage(playerid,COLOR_RED,"Da du kein Admin bist kannst du nicht bannen");
return 1;
}
if(strcmp("/news", cmdtext,true, 10) ==0)
{
SendClientMessage(playerid,COLOR_GREEN,"Weitere Infos stehen im Forum");
return 1;
}
return 0;
}
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[])
{
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
Euer AT2012