Deswegen ja, per TV schauen :S, wer mir helfen mag, PM bitte
Beiträge von Halleluja
-
-
Zitat
----------
Loaded log file: "server_log.txt".
----------SA-MP Dedicated Server
----------------------
v0.3e-R2, (C)2005-2012 SA-MP Team[22:01:24]
[22:01:24] Server Plugins
[22:01:24] --------------
[22:01:24] Loading plugin: streamer
[22:01:25] Failed.
[22:01:25] Loading plugin: sscanf2
[22:01:25] Failed.
[22:01:25] Loaded 0 plugins.[22:01:25]
[22:01:25] Filterscripts
[22:01:25] ---------------
[22:01:25] Loading filterscript 'messagefs.amx'...
[22:01:25]
--------------------------------------
[22:01:25]
[22:01:25] --------------------------------------[22:01:25] Loading filterscript 'gPM_FS.amx'...
[22:01:25] >> gPM FS: Init
[22:01:25] gPM <> Users: 66
[22:01:25] gPM <> Nachrichten: 69
[22:01:25] gPM <> Funktion gPM_UserCall fehlt oder der Key 0x000000-1 fehlt! ( 65535 )
[22:01:25] gPM <> Zertifizierung von Useraccount daher nicht aktiviert
[22:01:25] Loaded 2 filterscripts.[22:01:25] Script[gamemodes/HappyDeathmatch.amx]: Run time error 19: "File or function is not found"
[22:01:25] Number of vehicle models: 0 -
Mein server geht nicht mehr
Kann mir jmd. per TV helfen? DAS SCRIPT IST GANZ KLEIN, es geht darum das der sampserver.exe nicht startet
-
Kann mir jmd. kurz per TV helfen? bekomme da irgendwas mit Plugins nicht, hin
daten per pn, lg
-
Habs selber gemacht, aber danke
-
Kann mir jmd. den Klammerfehler beheben?
Find den nicht
public OnPlayerSpawn(playerid)
{
{
switch(GetPlayerLanguage(playerid))
{
case ENG:
{
if(GetPVarInt(playerid,"Jail") == 1)
{
SendClientMessage(playerid,Rot, "You're still in the Admin Prison!");
TogglePlayerControllable(playerid,0);
SetTimerEx("Loadobjects",3000,false,"i",playerid);
SetPlayerPos(playerid,378.5644,92.9471,1806.9797);
return 1;
}
case GER:
{
if(GetPVarInt(playerid,"Jail") == 1)
{
SendClientMessage(playerid,Rot, "You're still in the Admin Prison!");
TogglePlayerControllable(playerid,0);
SetTimerEx("Loadobjects",3000,false,"i",playerid);
SetPlayerPos(playerid,378.5644,92.9471,1806.9797);
return 1;
}
}
}
return 1;
} -
Hallo,
ich will dass wenn man connectet, erst diese kamerabewegung (video) KOMMT und dann einloggne, dann skin wählen, aber das kommt nicht
Kann mir jmd. helfen?
public OnPlayerConnect(playerid)
{
PlayAudioStreamForPlayer(playerid, "http://www.sunsetcity.at/intro.mp3");
InterpolateCameraPos(playerid, 1259.2728,-1267.9529,121.8339, 1500.0638,-1660.9421,89.9235, 10000, 2);
InterpolateCameraLookAt(playerid, 1525.7203,-1419.9393,113.5681, 1525.7203,-1419.9393,113.5681, 10000, 2);TextDrawShowForPlayer(playerid,Uhrzeit);
TextDrawShowForPlayer(playerid,SchwarzerBalken);SendClientMessage(playerid,Weiß, "");
SendClientMessage(playerid,Weiß, "");
SendClientMessage(playerid,Weiß, "");
SendClientMessage(playerid,Orange,"Herzlich willkommen auf ~Happy Deathmatch~");if(IsPlayerNPC(playerid))return 1;
new Spielerdatei[128],string[128],string2[128];
format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.ini",SpielerName(playerid));
if(dini_Exists(Spielerdatei))
{ //Wenn er registriert ist dann kommt das:
format(string,sizeof(string),"{FFFFFF}Herzlich Willkommen zurück {FFFA00}%s.\n{FFFFFF}Gib unten dein Passwort ein.",SpielerName(playerid));
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Einloggen",string,"Einloggen","Abbrechen");
}
else
{ //Falls er nicht registriert ist dann kommt das:
format(string2,sizeof(string2),"{FFFFFF}Dein Account wurde in unserer Datenbank nicht gefunden\nGib unten dein gewünschtes Passwort ein.",SpielerName(playerid));
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"Registration",string2,"Registrieren","Abbrechen");
}
return 1;
} -
Sicher O_o ?!
-
Hallo
Ich habe grad was vor, und zwar..
Wie kann ich machen bzw. unter was, kommt das:
Wenn ein Spieler lvl 4 wird oder so, wird nach kills berechnet, dann wird er ein lvl up und ein gamemodetext "Levelup" ?
unter welches public oder wie geht das?
Lg -
Bei MIR auch NICHT
-
dann kommt der warn
warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase1 Warning.
-
ja hier ist der login stock und der laden stock
//Login Stock
stock Login(playerid,key[])
{
new Spielerdatei[128];
new string2[128];
format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.ini",SpielerName(playerid));
if(gettime()<dini_Int(Spielerdatei,"timeban"))
{
SendClientMessage(playerid,Rot,"Du bist gebannt! Melde dich im Forum unter wwww.HamiServer.de!");
Kick(playerid);
return 1;
}
if(!strcmp(key,dini_Get(Spielerdatei,"Passwort"),false))
{
SpielerLaden(playerid);
SendClientMessage(playerid,0x00C100FF,"Du hast dich erfolgreich eingeloggt.");
format(string2,sizeof(string2),"%s hat den Server betreten.",SpielerName(playerid));
SendClientMessageToAll(0x00C100FF,string2);
}
else
{
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Einloggen","Das angegebene Passwort war leider falsch!\nBitte gib dein richtiges Passwort ein! ","Einloggen", "Abbrechen"); //Dialog-Style-Passwort und nicht Input.. Hier wird das eingegebene Passwort in Punkte formatiert während man es eingibt ..... Der Dialog wird wieder angezeigt bei Falschem Passwort ..
}
return 1;
}
//--------------------------------------------------------------------------------------------------------------------------
//SpielerLaden-Stock
stock SpielerLaden(playerid)
{
new Spielerdatei[128];
format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.ini",SpielerName(playerid));
SetPlayerScore(playerid,dini_Int(Spielerdatei,"Level"));
GivePlayerMoney(playerid,dini_Int(Spielerdatei,"Geld"));
SetPVarInt(playerid,"Kills",dini_Int(Spielerdatei,"Kills"));
SetPVarInt(playerid,"Deaths",dini_Int(Spielerdatei,"Deaths"));
SetPVarInt(playerid,"Adminlevel",dini_Int(Spielerdatei,"Adminlevel"));
SetPVarInt(playerid,"Jail",dini_Int(Spielerdatei,"Jail"));
SetPVarInt(playerid,"Warns",dini_Int(Spielerdatei,"Warns"));
SetPVarInt(playerid,"loggedin",1);
SetPVarInt(playerid,"Banned",dini_Int(Spielerdatei,"Banned"));
if(GetPVarInt(playerid,"Banned")==1)
{
SendClientMessage(playerid,0xFF0000FF,"Du kannst mit diesem Account nicht spielen, da du gebannt bist.\nBei Fragen oder Einwänden melde dich bei einem Admin"); //Nachricht an User
Kick(playerid);
return 1;
}
return 1;
} -
Hallo,
ICH bin gerade dabei was zu machen, mir fällt aber auf das sich nichts speichert
Kann mir einer helfen?
Das ist mein Speicherstock
//SpielerSpeichern-Stock
stock SpielerSpeichern(playerid)
{
if(GetPVarInt(playerid,"loggedin")==1)
{
new Spielerdatei[128];
format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.ini",SpielerName(playerid));
dini_IntSet(Spielerdatei,"Level",GetPlayerScore(playerid));
dini_IntSet(Spielerdatei,"Adminlevel",GetPVarInt(playerid,"Adminlevel"));
dini_IntSet(Spielerdatei,"Geld",GetPlayerMoney(playerid));
dini_IntSet(Spielerdatei,"Jail",GetPVarInt(playerid,"Jail"));
dini_IntSet(Spielerdatei,"timeban",GetPVarInt(playerid,"timeban"));
dini_IntSet(Spielerdatei,"Kills",GetPVarInt(playerid,"Kills"));
dini_IntSet(Spielerdatei,"Deaths",GetPVarInt(playerid,"Deaths"));
dini_IntSet(Spielerdatei,"Warns",GetPVarInt(playerid,"Warns"));
dini_IntSet(Spielerdatei,"Banned",GetPVarInt(playerid,"Banned"));
return 1;
}
return 1;
}Das ist bei OnPlayerDisconnect
public OnPlayerDisconnect(playerid, reason)
{if(GetPVarInt(playerid,"loggedin") == 1)
{
SpielerSpeichern(playerid);
}
return 1;
} -
Hallo :P,
ich habe um die 40 Bots, aber manche laden nicht (immer), ab und zu laden sie aber nicht immer, warum ? :o
Kann mir BITTE einer helfen
Das sind die NPC's Bei OnPlayerConnect
//NPC's
//An der Polizebase
ConnectNPC("WachmannImAuto","polizeiaufstreife");
ConnectNPC("PolizeiWache1","PolizeiWache1");
ConnectNPC("PolizeiWache2","PolizeiWache2");
ConnectNPC("PolizeiWache3","PolizeiWache3");
ConnectNPC("PolizeiWache4","PolizeiWache4");
ConnectNPC("PolizeiWache5","PolizeiWache5");
ConnectNPC("PolizeiWache6","PolizeiWache6");
//In der Premiumvilla
ConnectNPC("WacheVorClub1","wachevorclub1");
ConnectNPC("WacheVorClub2","wachevorclub2");
ConnectNPC("Info1","Info1");
ConnectNPC("Info2","Info2");
ConnectNPC("Info3","Info3");
ConnectNPC("Ticketverkaeufer1","Ticketverkäufer1");
ConnectNPC("Mission1","Mission1");
ConnectNPC("MissionsInformant1","MissionsInformant1");
ConnectNPC("MissionsInformant2","MissionsInformant2");
ConnectNPC("Boesewicht1","Bösewicht1");
ConnectNPC("ClubBesitzer1","ClubBesitzer1");
ConnectNPC("Bodyguard1","Bodyguard1");
ConnectNPC("Bodyguard2","Bodyguard2");
ConnectNPC("Bodyguard3","Bodyguard3");
ConnectNPC("Bodyguard4","Bodyguard4");
ConnectNPC("Bodyguard5","Bodyguard5");
ConnectNPC("Bodyguard6","Bodyguard6");
ConnectNPC("Bodyguard7","Bodyguard7");
ConnectNPC("Bodyguard8","Bodyguard8");
ConnectNPC("Bodyguard9","Bodyguard9");
ConnectNPC("Bodyguard10","Bodyguard10");
ConnectNPC("Bodyguard11","Bodyguard11");
ConnectNPC("Barkeeper1","Barkeeper1");
ConnectNPC("Barkeeper2","Barkeeper2");
ConnectNPC("Barkeeper3","Barkeeper3");
ConnectNPC("Stripper1","Stripper1");
ConnectNPC("Stripper2","Stripper2");
ConnectNPC("Stripper3","Stripper3");
ConnectNPC("CasinoAngestellter1","CasinoAngestellter1");
ConnectNPC("CasinoAngestellter2","CasinoAngestellter2");
ConnectNPC("CasinoAngestellter3","CasinoAngestellter3");
ConnectNPC("CasinoAngestellter4","CasinoAngestellter4");
OnPlayerSpawnif(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"CasinoAngestellter1",true))
{
SetPlayerSkin(playerid,11);
gTeam[playerid] = 6;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"CasinoAngestellter2",true))
{
SetPlayerSkin(playerid,189);
gTeam[playerid] = 6;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"CasinoAngestellter3",true))
{
SetPlayerSkin(playerid,11);
gTeam[playerid] = 6;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"CasinoAngestellter4",true))
{
SetPlayerSkin(playerid,189);
gTeam[playerid] = 6;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"MissionsInformant1",true))
{
SetPlayerSkin(playerid,29);
gTeam[playerid] = 6;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"MissionsInformant2",true))
{
SetPlayerSkin(playerid,67);
gTeam[playerid] = 6;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"ClubBesitzer1",true))
{
SetPlayerSkin(playerid,3);
gTeam[playerid] = 6;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Stripper1",true))
{
SetPlayerSkin(playerid,246);
gTeam[playerid] = 3;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Stripper2",true))
{
SetPlayerSkin(playerid,178);
gTeam[playerid] = 3;
return 1;
}
}
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Stripper3",true))
{
SetPlayerSkin(playerid,63);
gTeam[playerid] = 3;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Boesewicht1",true))
{
SetPlayerSkin(playerid,28);
ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
gTeam[playerid] = 6;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Ticketverkaeufer1",true))
{
SetPlayerSkin(playerid,171);
gTeam[playerid] = 5;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Mission1",true))
{
SetPlayerSkin(playerid,66);
gTeam[playerid] = 6;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Barkeeper1",true))
{
SetPlayerSkin(playerid,171);
gTeam[playerid] = 4;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Barkeeper2",true))
{
SetPlayerSkin(playerid,171);
gTeam[playerid] = 4;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Barkeeper3",true))
{
SetPlayerSkin(playerid,171);
gTeam[playerid] = 4;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Bodyguard1",true))
{
SetPlayerSkin(playerid,164);
gTeam[playerid] = 2;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Bodyguard2",true))
{
SetPlayerSkin(playerid,164);
gTeam[playerid] = 2;
return 1;
}
}
//_______________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Bodyguard3",true))
{
SetPlayerSkin(playerid,164);
gTeam[playerid] = 2;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Bodyguard4",true))
{
SetPlayerSkin(playerid,163);
gTeam[playerid] = 2;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Bodyguard5",true))
{
SetPlayerSkin(playerid,164);
gTeam[playerid] = 2;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Bodyguard6",true))
{
SetPlayerSkin(playerid,163);
gTeam[playerid] = 2;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Bodyguard7",true))
{
SetPlayerSkin(playerid,164);
gTeam[playerid] = 2;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Bodyguard8",true))
{
SetPlayerSkin(playerid,163);
gTeam[playerid] = 2;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Bodyguard9",true))
{
SetPlayerSkin(playerid,164);
gTeam[playerid] = 2;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Bodyguard10",true))
{
SetPlayerSkin(playerid,163);
gTeam[playerid] = 2;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Bodyguard11",true))
{
SetPlayerSkin(playerid,163);
gTeam[playerid] = 2;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Info1",true))
{
SetPlayerSkin(playerid,147);
gTeam[playerid] = 5;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Info2",true))
{
SetPlayerSkin(playerid,147);
gTeam[playerid] = 5;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"Info3",true))
{
SetPlayerSkin(playerid,147);
gTeam[playerid] = 5;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"WacheVorClub1",true))
{
SetPlayerSkin(playerid,163);
gTeam[playerid] = 2;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"WacheVorClub2",true))
{
SetPlayerSkin(playerid,164);
gTeam[playerid] = 2;
return 1;
}
}
//________________________________________________________________________________________
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"PolizeiWache1",true))
{
SetPlayerSkin(playerid,281);
SetPlayerColor(playerid,0x2100FFFF);
SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);//Schutzweste
SetPlayerAttachedObject(playerid,2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);//Helm
SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);//Tazer
gTeam[playerid] = 6;
return 1;
}
}
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"PolizeiWache2",true))
{
SetPlayerSkin(playerid,267);
SetPlayerColor(playerid,0x2100FFFF);
SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);//Schutzweste
SetPlayerAttachedObject(playerid,2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);//Helm
SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);//Tazer
gTeam[playerid] = 6;
return 1;
}
}
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"PolizeiWache3",true))
{
SetPlayerSkin(playerid,266);
SetPlayerColor(playerid,0x2100FFFF);
SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);//Schutzweste
SetPlayerAttachedObject(playerid,2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);//Helm
SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);//Tazer
gTeam[playerid] = 6;
return 1;
}
}
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"PolizeiWache4",true))
{
SetPlayerSkin(playerid,281);
SetPlayerColor(playerid,0x2100FFFF);
SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);//Schutzweste
SetPlayerAttachedObject(playerid,2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);//Helm
SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);//Tazer
gTeam[playerid] = 6;
return 1;
}
}
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"PolizeiWache5",true))
{
SetPlayerSkin(playerid,267);
SetPlayerColor(playerid,0x2100FFFF);
SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);//Schutzweste
SetPlayerAttachedObject(playerid,2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);//Helm
SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);//Tazer
gTeam[playerid] = 6;
return 1;
}
}
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"PolizeiWache6",true))
{
SetPlayerSkin(playerid,266);
SetPlayerColor(playerid,0x2100FFFF);
SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);//Schutzweste
SetPlayerAttachedObject(playerid,2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);//Helm
SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);//Tazer
gTeam[playerid] = 6;
return 1;
}
}
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"WachmannImAuto",true))
{
SetPlayerSkin(playerid,280);
SetPlayerColor(playerid,0x2100FFFF);
SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);//Schutzweste
SetPlayerAttachedObject(playerid,2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);//Helm
SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);//Tazer
PutPlayerInVehicle(playerid, cop_car, 0);
gTeam[playerid] = 6;
return 1;
}
}
return 1;
} -
Ich habe die Nacht durch gescriptet
kann es daran liegen, moment ich zeigs euch...
Muss ein Return 1; dahin? nach dem gTeam? weil habe viele viele viele NPC's
if(IsPlayerNPC(playerid))
{
new botname [MAX_PLAYER_NAME];
GetPlayerName(playerid,botname,sizeof(botname));
if(!strcmp(botname,"PolizeiWache6",true))
{
SetPlayerSkin(playerid,266);
SetPlayerColor(playerid,0x2100FFFF);
SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);//Schutzweste
SetPlayerAttachedObject(playerid,2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);//Helm
SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);//Tazer
gTeam[playerid] = 6;
}
} -
Hallo Leute
Bei meinem Script läuft grad VIELES schief!
NPC's laden nicht, bei manchen CMD's geht Server aus etc. kann mir jmd. BITTE per Teamviewer helfen?
Bin voll am verzweifeln
Lg
(Infos gibts per PN )
-
Hallo,
wie kann ich machen, dass wenn ein spieler nur noch 3 Leben hat, die anim "Crack" ausgeführt wird und eine naricht an das Team (gTeam) gesendet wird, das der spieler wenig leben hat ^^, und das man ihn mit einem medipack (hab ich selbst created ) retten kann, ansonsten spawnt er in 2 minuten neu ? -
DANKEEEEEEEEEEEEEEE
-
Hallo,
ich will das nur die Team fahren können, aber bekomme 2 errors, das habe ich:
Error:
error 032: array index out of bounds (variable "copcar")
error 032: array index out of bounds (variable "mafiacar")Die Errors sind bei den Cars jeweils die letzte Zeile
//Cars
new copcar[18];
new mafiacar[20];
//Polizei Fahrzeuge
copcar[0] = AddStaticVehicle(427,1603.7855,-1608.5659,13.6376,178.4725,0,1); // PolizeiEnforcer 1
copcar[1] = AddStaticVehicle(427,1598.0254,-1607.8481,13.5733,178.9632,0,1); // PolizeiEnforcer 2
copcar[2] = AddStaticVehicle(427,1592.5045,-1608.0096,13.5189,178.5793,0,1); // PolizeiEnforcer 3
copcar[3] = AddStaticVehicle(427,1586.7395,-1608.0833,13.5148,178.7516,0,1); // PolizeiEnforcer 4
copcar[4] = AddStaticVehicle(427,1581.9268,-1607.7037,13.5147,178.0450,0,1); // PolizeiEnforcer 5
copcar[5] = AddStaticVehicle(596,1570.5522,-1607.2411,13.1042,178.5272,0,1); // PolizeiAuto 7
copcar[6] = AddStaticVehicle(596,1566.3879,-1606.9556,13.1042,178.8037,0,1); // PolizeiAuto 8
copcar[7] = AddStaticVehicle(596,1562.0411,-1606.6685,13.1042,178.7900,0,1); // PolizeiAuto 9
copcar[8] = AddStaticVehicle(599,1545.7119,-1615.0981,13.5723,270.4102,0,1); // PolizeiJeep 11
copcar[9] = AddStaticVehicle(599,1545.8092,-1610.0946,13.5710,270.2557,0,1); // PolizeiJeep 12
copcar[10] = AddStaticVehicle(599,1545.7599,-1605.0392,13.5726,270.9627,0,1); // PolizeiJeep 13
copcar[11] = AddStaticVehicle(523,1605.1315,-1630.6987,13.0918,90.4368,0,0); // PolizeiMotorrad 14
copcar[12] = AddStaticVehicle(523,1604.9148,-1628.4031,13.0887,90.0730,0,0); // PolizeiMotorrad 15
copcar[13] = AddStaticVehicle(523,1604.7166,-1626.3622,13.0874,90.7656,0,0); // PolizeiMotorrad 16
copcar[14] = AddStaticVehicle(523,1604.7373,-1624.4265,13.0855,90.9977,0,0); // PolizeiMotorrad 17
copcar[15] = AddStaticVehicle(523,1604.8424,-1622.4253,13.0876,90.9957,0,0); // PolizeiMotorrad 18
copcar[16] = AddStaticVehicle(523,1604.5532,-1620.2802,13.0805,90.1311,0,0); // PolizeiMotorrad 19
copcar[17] = AddStaticVehicle(497,1565.4830,-1655.4453,28.5730,358.7146,0,1); // Polizei Heli 20
copcar[18] = AddStaticVehicle(497,1565.7003,-1645.2936,28.5802,269.0209,0,1); // Polizei Heli 21
//Mafia Fahrzeuge
mafiacar[0] = AddStaticVehicle(402,1087.4744,-1250.8728,15.6589,359.2153,0,0); // MafiaAuto 1
mafiacar[1] = AddStaticVehicle(402,1091.2317,-1250.0966,15.6588,359.3017,0,0); // MafiaAuto 2
mafiacar[2] = AddStaticVehicle(402,1096.3784,-1250.7358,15.6571,359.0631,0,0); // MafiaAuto 3
mafiacar[3] = AddStaticVehicle(402,1100.5239,-1250.1610,15.6538,359.5387,0,0); // MafiaAuto 4
mafiacar[4] = AddStaticVehicle(402,1104.7896,-1250.6335,15.6520,359.7735,0,0); // MafiaAuto 5
mafiacar[5] = AddStaticVehicle(451,1109.8159,-1227.3224,15.5279,181.1787,0,0); // MafiaTurismo 6
mafiacar[6] = AddStaticVehicle(451,1105.2802,-1227.4161,15.5339,181.0406,0,0); // MafiaTurismo 7
mafiacar[7] = AddStaticVehicle(451,1100.8446,-1227.3027,15.5273,181.1379,0,0); // MafiaTurismo 8
mafiacar[8] = AddStaticVehicle(451,1096.6696,-1227.0038,15.5264,181.1659,0,0); // MafiaTurismo 9
mafiacar[9] = AddStaticVehicle(451,1092.6292,-1227.0093,15.5264,181.0436,0,0); // MafiaTurismo 10
mafiacar[10] = AddStaticVehicle(461,1095.1047,-1219.9535,17.3808,351.3861,0,0); // MafiaMotorrad 11
mafiacar[11] = AddStaticVehicle(461,1097.2728,-1219.6458,17.3733,351.0743,0,0); // MafiaMotorrad 12
mafiacar[12] = AddStaticVehicle(461,1101.5051,-1219.4642,17.3878,351.5267,0,0); // MafiaMotorrad 13
mafiacar[13] = AddStaticVehicle(461,1099.3617,-1219.5437,17.3750,351.1716,0,0); // MafiaMotorrad 14
mafiacar[14] = AddStaticVehicle(461,1103.5846,-1219.5968,17.3777,351.3860,0,0); // MafiaMotorrad 15
mafiacar[15] = AddStaticVehicle(487,1128.7709,-1222.9833,25.4790,91.9463,0,0); // Mafia Heli 16
mafiacar[16] = AddStaticVehicle(487,1129.1904,-1238.1340,25.4787,91.3860,0,0); // Mafia Heli 17
mafiacar[17] = AddStaticVehicle(563,1141.8539,-1173.2039,32.7328,152.3813,0,0); // Mafia Heli 18
mafiacar[18] = AddStaticVehicle(522,1087.3054,-1197.0695,17.9972,272.1918,0,0); // Mafia Jeep 19
mafiacar[19] = AddStaticVehicle(522,1087.5648,-1201.0959,17.8310,272.3942,0,0); // Mafia Jeep 20
mafiacar[20] = AddStaticVehicle(522,1087.2483,-1192.4657,18.1674,272.1931,0,0); // Mafia Jeep 21
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
for(new i;i<sizeof(copcar);i++)
{
if(GetPlayerVehicleID(playerid) == copcar[i])
{
if(gTeam[playerid] != Cops)
{
RemovePlayerFromVehicle(playerid);
return GameTextForPlayer(playerid, "Du bist kein Polizist!", 5000,3);
}
}
}
}
if(newstate == PLAYER_STATE_DRIVER)
{
for(new i;i<sizeof(mafiacar);i++)
{
if(GetPlayerVehicleID(playerid) == mafiacar[i])
{
if(gTeam[playerid] != Mafia)
{
RemovePlayerFromVehicle(playerid);
return GameTextForPlayer(playerid, "Du bist nicht bei der Mafia!", 5000,3);
}
}
}
}
return 1;
} -
Ja wie lautet es ?:D
Mit
GetPVarIn....Score..... <50......
und darunter ?