Sieht nett aus aber meiner meinung nach etwas ugly
Natürlich gut aber gebe gernell nicht gerne Geld dafür aus
Troztdem Sehr gute Arbeit Atrox
Sieht nett aus aber meiner meinung nach etwas ugly
Natürlich gut aber gebe gernell nicht gerne Geld dafür aus
Troztdem Sehr gute Arbeit Atrox
Hallo Brotfischer
Ich habe nun loh neu angefangen zu editieren
Der server startet und geht direkt wieder aus..
Bin alle .cfg .log und .txt durch gegangen habe alle Logs neu erstellt
und neu geordnet. den Ordner Accounts erstellt und auch Autos
Der server startet und geht direkt wieder aus..
Crashreport
ZitatAlles anzeigen--------------------------
SA-MP Server: 0.3c R2
Exception At Address: 0x76EE6B90
Registers:
EAX: 0x00000024 EBX: 0x00000080 ECX: 0x004E64F0 EDX: 0x03041124
ESI: 0x00000024 EDI: 0x00000020 EBP: 0x0012F7A0 ESP: 0x0012F78C
EFLAGS: 0x00010212
Stack:
+0000: 0x03041124 0x03041110 0x00006766 0x013F2BB8
+0010: 0x013F2BB8 0x0012F7E0 0x004A29BE 0x00000020
+0020: 0x004A92F0 0x00000000 0x03041124 0x03041110
+0030: 0x00000080 0x656C6C41 0x6E61535C 0x0012F7B4
+0040: 0x0012F398 0x0012FE24 0x004A6FE4 0x004C28E0
+0050: 0xFFFFFFFF 0x00000080 0x004A2FE0 0x00000000
+0060: 0x00405114 0x00000000 0x0012F80C 0x03041110
+0070: 0x00000080 0x0012F8B4 0x004A31D7 0x004E6570
+0080: 0x004A31AD 0x013F2BB8 0x00405A52 0x00000000
+0090: 0x00000080 0x00000001 0x004A311E 0x0012FE24
+00A0: 0x004A6FE4 0x004C22A8 0xFFFFFFFF 0x004A31AD
+00B0: 0x0047F05C 0x004E6570 0x00498C7E 0x004F62C0
+00C0: 0x004F62C0 0x004C18F4 0x0012F870 0x01528A38
+00D0: 0x004C1908 0x0012F870 0x0012F86C 0x013F2BB8
+00E0: 0x00000000 0x00313030 0x0147F3A0 0x0152E4B0
+00F0: 0x004069DB 0x03040F28 0x0012F8C0 0x013F2BB8
+0100: 0x00332008 0x00406A71 0x004059F0 0x013F2BB8
+0110: 0x005206E0 0x00405A00 0x013F2BB8 0x013F2BB8
+0120: 0x02972C74 0x00000087 0x029C6E60 0x00401096
+0130: 0x013F2BB8 0x03041124 0x02B20A44 0x00402BB3
Serverlog
ZitatAlles anzeigen----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3c R2, (C)2005-2011 SA-MP Team
[15:41:53] filterscripts = "" (string)
[15:41:53]
[15:41:53] Server Plugins
[15:41:53] --------------
[15:41:53] Loading plugin: streamer
[15:41:53]
*** Streamer Plugin v2.5.2 by Incognito loaded ***
[15:41:53] Loaded.
[15:41:53] Loaded 1 plugins.
[15:41:53]
[15:41:53] Filter Scripts
[15:41:53] ---------------
[15:41:53] Loaded 0 filter scripts.
Hoffe jemand kann mir helfen..
Hmm
habs nu so
if(strcmp(cmd, "/admin", true) == 0 || strcmp(cmd, "/a", true) == 0)
{
if(!strlen(strget(cmdtext, 1)))
{
SendClientMessage(playerid, COLOR_GRAD2, " SERVER: /a [Text]");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new string[128];
tmp = bigstrtok(cmdtext,idx);
if(Spieler[playerid][pAdmin] == 0)
{
format(string, sizeof string, "User %s: %s",sendername, tmp);
SendAdminMessage(COLOR_RED, string, 1);
SendClientMessage(playerid, COLOR_BLUE, " Deine Admin Nachricht wurde an die Admins weitergeleitet. Achtung nur für Notfälle!");
AdminChatLog(string);
return 1;
}
else
{
format(string, sizeof string, "Admin %s: %s",sendername, tmp);
SendAdminMessage(COLOR_BLUE, string, 1);
AdminChatLog(string);
return 1;
}
}
Na dann kahm undifined Symbol idx usw
dann hab ich oben einfach new idx; gemacht aber jetzt bin ich genauso weit wie vorher..
Hallo Brotfischer
Habe eine Frage.
Wie macht man das, das wenn man "/a hallo ich bin der und der" das es auch ankommt?
der jetzige Befehl sendet dann nur hallo
Würde mir das vielleicht jemand erklären? wäre echt nett
if(strcmp(cmd, "/admin", true) == 0 || strcmp(cmd, "/a", true) == 0)
{
if(!strlen(strget(cmdtext, 1)))
{
SendClientMessage(playerid, COLOR_GRAD2, " SERVER: /a [Text]");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new string[128];
tmp = strget(cmdtext,1);
if(Spieler[playerid][pAdmin] == 0)
{
format(string, sizeof string, "User %s: %s",sendername, tmp);
SendAdminMessage(COLOR_RED, string, 1);
SendClientMessage(playerid, COLOR_BLUE, " Deine Admin Nachricht wurde an die Admins weitergeleitet. Achtung nur für Notfälle!");
AdminChatLog(string);
return 1;
}
else
{
format(string, sizeof string, "Admin %s: %s",sendername, tmp);
SendAdminMessage(COLOR_BLUE, string, 1);
AdminChatLog(string);
return 1;
}
}
Hallo Brotfischer
Ich habe grad den Befehl /aw für admins gemacht er soll einfach /aw TEXT an Spieler senden
if (strcmp("/aw", cmdtext, true, 3) == 0)
{
if(Eingeloggt[playerid] == 0)
{
SendClientMessage(playerid, COLOR_RED, " Info: Du bist nicht eingeloggt!");
return 1;
}
if(Spieler[playerid][pAdmin] == 0)
{
SendClientMessage(playerid, COLOR_GRAD1, " Info: Dies ist ein Admin Befehl. Du bist kein Admin!");
return 1;
}
if(!strlen(strget(cmdtext,1)) || !strlen(strget(cmdtext,2)))
{
SendClientMessage(playerid, COLOR_GRAD2, " SERVER: /aw [playerid] [Text]");
return 1;
}
tmp = strget(cmdtext,1);
new para1 = ReturnUser(tmp);
new tmp2[128];
tmp2 = strget(cmdtext,2);
if(para1 == INVALID_PLAYER_ID || Eingeloggt[para1] != 1)
{
SendClientMessage(playerid,COLOR_GRAD2," SERVER: Dieser Spieler ist nicht eingeloggt!");
return 1;
}
new string[128];
GetPlayerName(playerid, sendername, sizeof sendername);
format(string, sizeof string, "(( %s: %s ))",sendername,tmp2);
SendClientMessage(playerid,COLOR_YELLOW,string);
SendClientMessage(para1,COLOR_YELLOW,string);
return 1;
}
Wenn ich jetzt zum beispiel /aw 0 hey wie gehts
schreibe dann kommt bei ihm und mir nur das an (( hey ))
Danke im Vorraus
Ich kann es aber werde es nicht weiter geben
Ich denke wenn es weiter gegeben wird, wird es irgendwann jeder haben
sorry dude
EDIT
Fehler gefunden...
Noob Fehler...
Der Log Ordner war nicht erstellt.....
Sorry
Hallo samp community
ich habe eine Frage
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
format(string, sizeof string, "Admin %s hat dein Geld auf %d gestellt", sendername, money);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
Wenn dieser Teil im Script ist, crasht der server Der Text wird ausgegeben aber der Server crasht...
Weiss net wieso
Zusatzteie:
new string[128];
new money = strval(strget(cmdtext,2));
ResetPlayerMoney(para1);
GivePlayerMoney(para1, money);
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
Nettes tut endlich ein neues Tutorial
Nur meiner meinung nach etwas unübersichtlich gescriptet
Vielen Dank für deine Rückmeldung
//Edit
Aber noname script anfänger bin ich nicht nur en vernümpftiges Selfmade hinzubekommen dauert sehr lange
EDIT: Ich weiss ich sag ja ich wills net verkaufen nur wollte wissen was meine Arbeit an Geld wert ist
ja das war mir schon klar Ist halt Godfather
0 Euro isses aber net wert Viel kann es aber nicht sein
EDIT: Ich weiss ich sag ja ich wills net verkaufen nur wollte wissen was meine Arbeit an Geld wert ist
Was meinst du damit? Dieser,Text,darf,min,15,
Sicher darf iich loh nutzen ist doch im Showroom LoH 0.4 darf man die versionen danach haben copyright
Hallo liebe Community,
Ich habe nun sehr lange an meinem Server gearbeitet und spiele auch noch dort. Mich würde nur mal interessieren was mein Script quasi wert ist? Wenn nichts dann nichts
Ich habe sehr viel Arbeit rein gesteckt
Server IP: 46.4.67.125:4444
Also es war ein LoH 0.4 habe es halt editiert Wäre nett wenn ihr mir einen ernst gemeinten Preis schreiben könntet.
Würde mich echt mal interessieren
Wenn ihr testen wollte einfach ingame per /sup melden werde dann zu euch kommen
MfG Dark
PS: Im Name braucht man ein "." oder ein "_" Dient zu Roleplay zwecken
EDIT:
Da einige im Forum es falsch verstanden haben
Ich will das Script nicht verkaufen nur wollte wissen was meine Arbeit an Geld wert ist
Auserdem müsste es dann in den marktplatz bereich
Byserv kann ich auch nur emphelen!
Habe meinen Server auch da und das sind echt gute Preise!
Der Support hat auch immer Zeit
10 / 10
Es sieht so aus als hättest du da eine Menge herausgeholt Ansonsten nutz mal Strg + F wenn du da die sachen die als nicht definiert angeben sind findest hast du ein Klammerfehler
Soll ich dir den "Angebots" Befehl auch geben?
Klar wenn du selfmade hast musst du das umschreiben
Habe es mit ihm über Skype gemacht sollte eigendlich jetzt funktionieren
und hier unter onplayertext
if(SelectChar[playerid] == 255)
{
new idx;
tmp = strtok(text, idx);
if ((strcmp("weiter", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("weiter")))
{
switch (SelectCharID[playerid])
{
case 1: // LSPD
{
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
JoinPed[0][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
JoinPed[0][0]; }
else if(SelectCharPlace[playerid] == 2) {
SetPlayerSkin(playerid, JoinPed[1][0]); SelectCharPlace[playerid] = 3;
ChosenSkin[playerid] = JoinPed[1][0]; }
else
if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
JoinPed[2][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
JoinPed[2][0]; }
else if(SelectCharPlace[playerid] == 4) {
SetPlayerSkin(playerid, JoinPed[3][0]); SelectCharPlace[playerid] = 5;
ChosenSkin[playerid] = JoinPed[3][0]; }
else
if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid,
JoinPed[4][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] =
JoinPed[4][0]; }
else if(SelectCharPlace[playerid] == 6) {
SetPlayerSkin(playerid, JoinPed[5][0]); SelectCharPlace[playerid] = 7;
ChosenSkin[playerid] = JoinPed[5][0]; }
else
if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid,
JoinPed[6][0]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] =
JoinPed[6][0]; }
else if(SelectCharPlace[playerid] == 8) {
SetPlayerSkin(playerid, JoinPed[7][0]); SelectCharPlace[playerid] = 9;
ChosenSkin[playerid] = JoinPed[7][0]; }
else
if(SelectCharPlace[playerid] == 9) { SetPlayerSkin(playerid,
JoinPed[8][0]); SelectCharPlace[playerid] = 10; ChosenSkin[playerid] =
JoinPed[8][0]; }
else if(SelectCharPlace[playerid] == 10) {
SetPlayerSkin(playerid, JoinPed[9][0]); SelectCharPlace[playerid] = 1;
ChosenSkin[playerid] = JoinPed[9][0]; }
}
case 2: // SFPD
{
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
JoinPed[10][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
JoinPed[10][0]; }
else if(SelectCharPlace[playerid] == 2) {
SetPlayerSkin(playerid, JoinPed[11][0]); SelectCharPlace[playerid] = 3;
ChosenSkin[playerid] = JoinPed[11][0]; }
else
if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
JoinPed[12][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
JoinPed[12][0]; }
else if(SelectCharPlace[playerid] == 4) {
SetPlayerSkin(playerid, JoinPed[13][0]); SelectCharPlace[playerid] = 1;
ChosenSkin[playerid] = JoinPed[13][0]; }
}
case 3: // Army
{
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
JoinPed[14][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
JoinPed[14][0]; }
else if(SelectCharPlace[playerid] == 2) {
SetPlayerSkin(playerid, JoinPed[15][0]); SelectCharPlace[playerid] = 3;
ChosenSkin[playerid] = JoinPed[15][0]; }
else
if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
JoinPed[16][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] =
JoinPed[16][0]; }
}
case 4: // Medic
{
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
JoinPed[16][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
JoinPed[16][0]; }
else if(SelectCharPlace[playerid] == 2) {
SetPlayerSkin(playerid, JoinPed[17][0]); SelectCharPlace[playerid] = 3;
ChosenSkin[playerid] = JoinPed[17][0]; }
else
if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
JoinPed[18][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
JoinPed[18][0]; }
else if(SelectCharPlace[playerid] == 4) {
SetPlayerSkin(playerid, JoinPed[19][0]); SelectCharPlace[playerid] = 1;
ChosenSkin[playerid] = JoinPed[19][0]; }
}
case 5: //La Cosa Nostra
{
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
JoinPed[20][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
JoinPed[20][0]; }
else if(SelectCharPlace[playerid] == 2) {
SetPlayerSkin(playerid, JoinPed[21][0]); SelectCharPlace[playerid] = 3;
ChosenSkin[playerid] = JoinPed[21][0]; }
else
if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
JoinPed[22][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
JoinPed[22][0]; }
else if(SelectCharPlace[playerid] == 4) {
SetPlayerSkin(playerid, JoinPed[23][0]); SelectCharPlace[playerid] = 5;
ChosenSkin[playerid] = JoinPed[23][0]; }
else
if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid,
JoinPed[24][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] =
JoinPed[24][0]; }
else if(SelectCharPlace[playerid] == 6) {
SetPlayerSkin(playerid, JoinPed[25][0]); SelectCharPlace[playerid] = 7;
ChosenSkin[playerid] = JoinPed[25][0]; }
else
if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid,
JoinPed[26][0]); SelectCharPlace[playerid] = 8; ChosenSkin[playerid] =
JoinPed[26][0]; }
else if(SelectCharPlace[playerid] == 8) {
SetPlayerSkin(playerid, JoinPed[27][0]); SelectCharPlace[playerid] = 1;
ChosenSkin[playerid] = JoinPed[27][0]; }
}
case 6: //Yakuza
{
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
JoinPed[28][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
JoinPed[28][0]; }
else if(SelectCharPlace[playerid] == 2) {
SetPlayerSkin(playerid, JoinPed[29][0]); SelectCharPlace[playerid] = 3;
ChosenSkin[playerid] = JoinPed[29][0]; }
else
if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
JoinPed[30][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
JoinPed[30][0]; }
else if(SelectCharPlace[playerid] == 4) {
SetPlayerSkin(playerid, JoinPed[31][0]); SelectCharPlace[playerid] = 5;
ChosenSkin[playerid] = JoinPed[31][0]; }
else
if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid,
JoinPed[32][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] =
JoinPed[32][0]; }
else if(SelectCharPlace[playerid] == 6) {
SetPlayerSkin(playerid, JoinPed[33][0]); SelectCharPlace[playerid] = 7;
ChosenSkin[playerid] = JoinPed[33][0]; }
else
if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid,
JoinPed[34][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] =
JoinPed[34][0]; }
}
case 7: //Präsident
{
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
JoinPed[35][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
JoinPed[35][0]; }
else if(SelectCharPlace[playerid] == 2) {
SetPlayerSkin(playerid, JoinPed[36][0]); SelectCharPlace[playerid] = 1;
ChosenSkin[playerid] = JoinPed[36][0]; }
}
case 8: //Hitman Agency
{
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
JoinPed[37][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
JoinPed[37][0]; }
else if(SelectCharPlace[playerid] == 2) {
SetPlayerSkin(playerid, JoinPed[38][0]); SelectCharPlace[playerid] = 3;
ChosenSkin[playerid] = JoinPed[38][0]; }
else
if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
JoinPed[39][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
JoinPed[39][0]; }
else if(SelectCharPlace[playerid] == 4) {
SetPlayerSkin(playerid, JoinPed[40][0]); SelectCharPlace[playerid] = 5;
ChosenSkin[playerid] = JoinPed[40][0]; }
else
if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid,
JoinPed[41][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] =
JoinPed[41][0]; }
}
case 9: //News Reporters
{
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
JoinPed[42][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
JoinPed[42][0]; }
else if(SelectCharPlace[playerid] == 2) {
SetPlayerSkin(playerid, JoinPed[43][0]); SelectCharPlace[playerid] = 3;
ChosenSkin[playerid] = JoinPed[43][0]; }
else
if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
JoinPed[44][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] =
JoinPed[44][0]; }
}
case 10: //Taxi Cab Company
{
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
JoinPed[45][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
JoinPed[45][0]; }
else if(SelectCharPlace[playerid] == 2) {
SetPlayerSkin(playerid, JoinPed[46][0]); SelectCharPlace[playerid] = 3;
ChosenSkin[playerid] = JoinPed[46][0]; }
else
if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
JoinPed[47][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] =
JoinPed[47][0]; }
}
case 11: //Driving/Flying School
{
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
JoinPed[48][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
JoinPed[48][0]; }
else if(SelectCharPlace[playerid] == 2) {
SetPlayerSkin(playerid, JoinPed[49][0]); SelectCharPlace[playerid] = 3;
ChosenSkin[playerid] = JoinPed[49][0]; }
else
if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
JoinPed[50][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
JoinPed[50][0]; }
else if(SelectCharPlace[playerid] == 4) {
SetPlayerSkin(playerid, JoinPed[51][0]); SelectCharPlace[playerid] = 1;
ChosenSkin[playerid] = JoinPed[51][0]; }
}
case 12: //Hells Angels
{
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
JoinPed[52][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
JoinPed[52][0]; }
else if(SelectCharPlace[playerid] == 2) {
SetPlayerSkin(playerid, JoinPed[53][0]); SelectCharPlace[playerid] = 3;
ChosenSkin[playerid] = JoinPed[53][0]; }
else
if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
JoinPed[54][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
JoinPed[54][0]; }
else if(SelectCharPlace[playerid] == 4) {
SetPlayerSkin(playerid, JoinPed[55][0]); SelectCharPlace[playerid] = 5;
ChosenSkin[playerid] = JoinPed[55][0]; }
else
if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid,
JoinPed[56][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] =
JoinPed[56][0]; }
else if(SelectCharPlace[playerid] == 6) {
SetPlayerSkin(playerid, JoinPed[57][0]); SelectCharPlace[playerid] = 1;
ChosenSkin[playerid] = JoinPed[57][0]; }
}
case 13: //Grove Street
{
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
JoinPed[58][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
JoinPed[58][0]; }
else if(SelectCharPlace[playerid] == 2) {
SetPlayerSkin(playerid, JoinPed[59][0]); SelectCharPlace[playerid] = 3;
ChosenSkin[playerid] = JoinPed[59][0]; }
else
if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
JoinPed[60][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
JoinPed[60][0]; }
else if(SelectCharPlace[playerid] == 4) {
SetPlayerSkin(playerid, JoinPed[61][0]); SelectCharPlace[playerid] = 5;
ChosenSkin[playerid] = JoinPed[61][0]; }
else
if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid,
JoinPed[62][0]); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] =
JoinPed[62][0]; }
else if(SelectCharPlace[playerid] == 6) {
SetPlayerSkin(playerid, JoinPed[63][0]); SelectCharPlace[playerid] = 7;
ChosenSkin[playerid] = JoinPed[63][0]; }
else
if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid,
JoinPed[64][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] =
JoinPed[64][0]; }
}
case 14: //Ballas
{
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
JoinPed[65][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
JoinPed[65][0]; }
else if(SelectCharPlace[playerid] == 2) {
SetPlayerSkin(playerid, JoinPed[66][0]); SelectCharPlace[playerid] = 3;
ChosenSkin[playerid] = JoinPed[66][0]; }
else
if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
JoinPed[67][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
JoinPed[67][0]; }
else if(SelectCharPlace[playerid] == 4) {
SetPlayerSkin(playerid, JoinPed[68][0]); SelectCharPlace[playerid] = 1;
ChosenSkin[playerid] = JoinPed[68][0]; }
}
case 15: //2fast
{
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
JoinPed[69][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
JoinPed[69][0]; }
else if(SelectCharPlace[playerid] == 2) {
SetPlayerSkin(playerid, JoinPed[70][0]); SelectCharPlace[playerid] = 3;
ChosenSkin[playerid] = JoinPed[70][0]; }
else
if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
JoinPed[71][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
JoinPed[71][0]; }
else if(SelectCharPlace[playerid] == 4) {
SetPlayerSkin(playerid, JoinPed[72][0]); SelectCharPlace[playerid] = 5;
ChosenSkin[playerid] = JoinPed[72][0]; }
else
if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid,
JoinPed[73][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] =
JoinPed[73][0]; }
}
case 16: //Los Santos Vagos
{
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
JoinPed[74][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
JoinPed[74][0]; }
else if(SelectCharPlace[playerid] == 2) {
SetPlayerSkin(playerid, JoinPed[75][0]); SelectCharPlace[playerid] = 3;
ChosenSkin[playerid] = JoinPed[75][0]; }
else
if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
JoinPed[76][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
JoinPed[76][0]; }
else if(SelectCharPlace[playerid] == 4) {
SetPlayerSkin(playerid, JoinPed[77][0]); SelectCharPlace[playerid] = 1;
ChosenSkin[playerid] = JoinPed[77][0]; }
}
case 17: //Varios Los Aztecas
{
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
JoinPed[78][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
JoinPed[78][0]; }
else if(SelectCharPlace[playerid] == 2) {
SetPlayerSkin(playerid, JoinPed[79][0]); SelectCharPlace[playerid] = 3;
ChosenSkin[playerid] = JoinPed[79][0]; }
else
if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
JoinPed[80][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
JoinPed[80][0]; }
else if(SelectCharPlace[playerid] == 4) {
SetPlayerSkin(playerid, JoinPed[81][0]); SelectCharPlace[playerid] = 1;
ChosenSkin[playerid] = JoinPed[81][0]; }
}
case 18: //San Fierro Rifa
{
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
JoinPed[82][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
JoinPed[82][0]; }
else if(SelectCharPlace[playerid] == 2) {
SetPlayerSkin(playerid, JoinPed[83][0]); SelectCharPlace[playerid] = 3;
ChosenSkin[playerid] = JoinPed[83][0]; }
else
if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
JoinPed[84][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
JoinPed[84][0]; }
else if(SelectCharPlace[playerid] == 4) {
SetPlayerSkin(playerid, JoinPed[85][0]); SelectCharPlace[playerid] = 1;
ChosenSkin[playerid] = JoinPed[85][0]; }
}
case 19: //West Coast Customs
{
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
JoinPed[86][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
JoinPed[86][0]; }
else if(SelectCharPlace[playerid] == 2) {
SetPlayerSkin(playerid, JoinPed[87][0]); SelectCharPlace[playerid] = 3;
ChosenSkin[playerid] = JoinPed[87][0]; }
else
if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
JoinPed[88][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
JoinPed[88][0]; }
else if(SelectCharPlace[playerid] == 4) {
SetPlayerSkin(playerid, JoinPed[89][0]); SelectCharPlace[playerid] = 5;
ChosenSkin[playerid] = JoinPed[89][0]; }
else
if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid,
JoinPed[90][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] =
JoinPed[90][0]; }
}
case 21: // FBI
{
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
JoinPed[91][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
JoinPed[91][0]; }
else if(SelectCharPlace[playerid] == 2) {
SetPlayerSkin(playerid, JoinPed[92][0]); SelectCharPlace[playerid] = 3;
ChosenSkin[playerid] = JoinPed[92][0]; }
else
if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
JoinPed[93][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] =
JoinPed[93][0]; }
else if(SelectCharPlace[playerid] == 4) {
SetPlayerSkin(playerid, JoinPed[94][0]); SelectCharPlace[playerid] = 5;
ChosenSkin[playerid] = JoinPed[94][0]; }
else
if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid,
JoinPed[95][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] =
JoinPed[95][0]; }
}
case 22: // Feuerwehr
{
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
JoinPed[96][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
JoinPed[96][0]; }
else if(SelectCharPlace[playerid] == 2) {
SetPlayerSkin(playerid, JoinPed[97][0]); SelectCharPlace[playerid] = 3;
ChosenSkin[playerid] = JoinPed[97][0]; }
else
if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
JoinPed[98][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] =
JoinPed[98][0]; }
}
case 23: // Grundwehrdient
{
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
JoinPed[99][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
JoinPed[99][0]; }
else if(SelectCharPlace[playerid] == 2) {
SetPlayerSkin(playerid, JoinPed[100][0]); SelectCharPlace[playerid] = 3;
ChosenSkin[playerid] = JoinPed[100][0]; }
else
if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
JoinPed[101][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] =
JoinPed[101][0]; }
}
case 24: // Ordnungsamt
{
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid,
JoinPed[102][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] =
JoinPed[102][0]; }
else if(SelectCharPlace[playerid] == 2) {
SetPlayerSkin(playerid, JoinPed[103][0]); SelectCharPlace[playerid] = 3;
ChosenSkin[playerid] = JoinPed[103][0]; }
else
if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid,
JoinPed[104][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] =
JoinPed[104][0]; }
}
}
return 0;
}
else if ((strcmp("fertig", tmp, true, strlen(tmp)) == 0))
{
if(ChangePos2[playerid][1] == 1)
{
SetPlayerInterior(playerid, ChangePos2[playerid][0]);
SetPlayerPos(playerid, ChangePos[playerid][0],ChangePos[playerid][1],ChangePos[playerid][2]);
ChangePos2[playerid][1] = 0;
return 0;
}
Spieler[playerid][pModel] = ChosenSkin[playerid];
Spieler[playerid][pChar] = ChosenSkin[playerid];
SetSpawnInfo(playerid, Spieler[playerid][pTeam], Spieler[playerid][pModel],0.0,0.0,0.0,0,0,0,0,0,0,0);
gTeam[playerid] = Spieler[playerid][pTeam];
SetPlayerToTeamColor(playerid);
MedicBill[playerid] = 0;
SpawnPlayer(playerid);
SelectCharPlace[playerid] = 0;
SelectCharID[playerid] = 0;
SelectChar[playerid] = 0;
UnFreezePlayer(playerid);
return 0;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Benutze 'fertig'.");
return 0;
}
}
EDIT::
Sry die Formatierung ist verloren gegangen ...
Define
new JoinPed[105][1] = {
{280}, // LSPD 0
{281}, // LSPD 1
{282}, // LSPD 2
{283}, // LSPD 3
{284}, // LSPD 4
{285}, // LSPD 5
{288}, // LSPD 6
{71}, // LSPD 7
{166}, // LSPD 8
{148}, // LSPD 9
{283}, // SFPD 10
{280}, // SFPD 11
{281}, // SFPD 12
{148}, // SFPD 13
{287}, // ARMY 14
{285}, // ARMY 15
{148}, // ARMY 16
{70}, // MEDIC 17
{274}, // MEDIC 18
{276}, // MEDIC 19
{127}, // LCN 20
{126}, // LCN 21
{125}, // LCN 22
{124}, // LCN 23
{113}, // LCN 24 nein können sie nich
{111}, // LCN 25
{98}, // LCN 26
{93}, // LCN 27
{120}, // YAKI 28
{121}, // YAKI 29
{122}, // YAKI 30
{123}, // YAKI 31
{186}, // YAKI 32
{228}, // YAKI 33
{169}, // YAKI 34
{155}, // PRÄSI 35
{193}, // PRÄSI 36
{127}, // HITMAN 37
{165}, // HITMAN 38
{186}, // HITMAN 39
{141}, // HITMAN 40
{93}, // HITMAN 41
{187}, // CNN 42
{188}, // CNN 43
{93}, // CNN 44
{255}, // TAXI 45
{253}, // TAXI 46
{76}, // TAXI 47
{59}, // FAHRSCHULE 48
{60}, // FAHRSCHULE 49
{150}, // FAHRSCHULE 50
{76}, // FAHRSCHULE 51
{100}, // BIKER 52
{247}, // BIKER 53
{248}, // BIKER 54
{254}, // BIKER 55
{248}, // BIKER 56
{131}, // BIKER 57
{105}, // GROVE 58
{106}, // GROVE 59
{107}, // GROVE 60
{269}, // GROVE 61
{270}, // GROVE 62
{271}, // GROVE 63
{191}, // GROVE 64
{102}, // BALLAS 65
{195}, // BALLAS 66
{104}, // BALLAS 67
{193}, // BALLAS 68
{185}, // FaF 69
{23}, // FaF 70
{50}, // FaF 71
{193}, // FaF 72
{192}, // FaF 73
{108}, // VAGOS 74
{109}, // VAGOS 75
{110}, // VAGOS 76
{226}, // VAGOS 77
{114}, // AZTECAS 78
{115}, // AZTECAS 79
{116}, // AZTECAS 80
{298}, // AZTECAS 81
{173}, // RIFA 82
{174}, // RIFA 83
{175}, // RIFA 84
{214}, // RIFA 85
{223}, // WCC 86
{234}, // WCC 87
{250}, // WCC 88
{7}, // WCC 89
{93}, // WCC 90
{280}, // FBI 91
{284}, // FBI 92
{285}, // FBI 93
{286}, // FBI 94
{148}, // FBI 95
{277}, // FEUERWEHR 96
{278}, // FEUERWEHR 97
{279}, // FEUERWEHR 98
{272}, // RM 99
{125}, // RM 100
{126}, // RM 101
{255}, // OAMT 102
{261}, // OAMT 103
{76} // OAMT 104
};
Befehl:
if(strcmp(cmd,"/einladung",true) == 0)
{
tmp = strtok(cmdtext,idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "BENUTZUNG: /einladung [annehmen/ablehnen]");
return 1;
}
if(Eingeladen[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GRAD2, "Du wurdest in keine Fraktion eingeladen!");
return 1;
}
if(strcmp(tmp,"annehmen",true) == 0)
{
if(Eingeladen[playerid] == 1) { Spieler[playerid][pTeam] = 2; gTeam[playerid] = 2; ChosenSkin[playerid] = 280; SetPlayerSkin(playerid, 280); }
else if(Eingeladen[playerid] == 2) { Spieler[playerid][pTeam] = 2; gTeam[playerid] = 2; ChosenSkin[playerid] = 280; SetPlayerSkin(playerid, 280); }
else if(Eingeladen[playerid] == 3) { Spieler[playerid][pTeam] = 2; gTeam[playerid] = 2; ChosenSkin[playerid] = 287; SetPlayerSkin(playerid, 287); }
else if(Eingeladen[playerid] == 4) { Spieler[playerid][pTeam] = 1; gTeam[playerid] = 1; ChosenSkin[playerid] = 70; SetPlayerSkin(playerid, 70); }
else if(Eingeladen[playerid] == 5) { Spieler[playerid][pTeam] = 5; gTeam[playerid] = 5; ChosenSkin[playerid] = 258; SetPlayerSkin(playerid, 120); }
else if(Eingeladen[playerid] == 6) { Spieler[playerid][pTeam] = 5; gTeam[playerid] = 5; ChosenSkin[playerid] = 228; SetPlayerSkin(playerid, 222); }
else if(Eingeladen[playerid] == 7) { Spieler[playerid][pTeam] = 7; gTeam[playerid] = 7; ChosenSkin[playerid] = 164; SetPlayerSkin(playerid, 164); }
else if(Eingeladen[playerid] == 8) { Spieler[playerid][pTeam] = 8; gTeam[playerid] = 8; ChosenSkin[playerid] = 250; SetPlayerSkin(playerid, 250); }
else if(Eingeladen[playerid] == 9) { Spieler[playerid][pTeam] = 9; gTeam[playerid] = 9; ChosenSkin[playerid] = 187; SetPlayerSkin(playerid, 187); }
else if(Eingeladen[playerid] == 10) { Spieler[playerid][pTeam] = 10; gTeam[playerid] = 10; ChosenSkin[playerid] = 255; SetPlayerSkin(playerid, 255); }
else if(Eingeladen[playerid] == 11) { Spieler[playerid][pTeam] = 11; gTeam[playerid] = 11; ChosenSkin[playerid] = 240; SetPlayerSkin(playerid, 240); }
else if(Eingeladen[playerid] == 12) { Spieler[playerid][pTeam] = 12; gTeam[playerid] = 12; ChosenSkin[playerid] = 247; SetPlayerSkin(playerid, 247); }//Hells Angels
else if(Eingeladen[playerid] == 13) { Spieler[playerid][pTeam] = 13; gTeam[playerid] = 13; ChosenSkin[playerid] = 105; SetPlayerSkin(playerid, 105); }//Grove Street
else if(Eingeladen[playerid] == 14) { Spieler[playerid][pTeam] = 14; gTeam[playerid] = 14; ChosenSkin[playerid] = 102; SetPlayerSkin(playerid, 102); }//Ballas
else if(Eingeladen[playerid] == 15) { Spieler[playerid][pTeam] = 15; gTeam[playerid] = 15; ChosenSkin[playerid] = 185; SetPlayerSkin(playerid, 185); }//2Fast2Furios
else if(Eingeladen[playerid] == 16) { Spieler[playerid][pTeam] = 16; gTeam[playerid] = 16; ChosenSkin[playerid] = 108; SetPlayerSkin(playerid, 108); }//Los Santos Vagos
else if(Eingeladen[playerid] == 17) { Spieler[playerid][pTeam] = 17; gTeam[playerid] = 17; ChosenSkin[playerid] = 114; SetPlayerSkin(playerid, 114); }//Varios Los Aztecas
else if(Eingeladen[playerid] == 18) { Spieler[playerid][pTeam] = 18; gTeam[playerid] = 18; ChosenSkin[playerid] = 173; SetPlayerSkin(playerid, 173); }//San Fiero Rifa
else if(Eingeladen[playerid] == 19) { Spieler[playerid][pTeam] = 19; gTeam[playerid] = 19; ChosenSkin[playerid] = 234; SetPlayerSkin(playerid, 234); }//West Coust Customs
else if(Eingeladen[playerid] == 20) { Spieler[playerid][pTeam] = 20; gTeam[playerid] = 20; ChosenSkin[playerid] = 220; SetPlayerSkin(playerid, 220); }
else if(Eingeladen[playerid] == 21) { Spieler[playerid][pTeam] = 2; gTeam[playerid] = 2; ChosenSkin[playerid] = 286; SetPlayerSkin(playerid, 286); }
else if(Eingeladen[playerid] == 22) { Spieler[playerid][pTeam] = 22; gTeam[playerid] = 22; ChosenSkin[playerid] = 277; SetPlayerSkin(playerid, 277); }
else if(Eingeladen[playerid] == 23) { Spieler[playerid][pTeam] = 23; gTeam[playerid] = 23; ChosenSkin[playerid] = 133; SetPlayerSkin(playerid, 133); }
else if(Eingeladen[playerid] == 24) { Spieler[playerid][pTeam] = 24; gTeam[playerid] = 24; ChosenSkin[playerid] = 255; SetPlayerSkin(playerid, 255); }
else { return 1; }
GetPlayerName(playerid,sendername,sizeof(sendername));
Spieler[playerid][pMember] = Eingeladen[playerid];
Spieler[playerid][pRank] = 1;
format(string,sizeof(string)," %s hat die Einladung in die Fraktion %s angenommen!",sendername,Fracs[Eingeladen[playerid]-1]);
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(Spieler[i][pLeader] == Eingeladen[playerid])
{
SendClientMessage(i,COLOR_LIGHTBLUE,string);
}
}
}
SetPlayerInterior(playerid,0);
new rand = random(sizeof(gInviteSpawns));
SetPlayerPos(playerid, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, gInviteSpawns[rand][3]);
SetPlayerCameraPos(playerid,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
SetPlayerCameraLookAt(playerid,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
FreezePlayer(playerid);
SelectChar[playerid] = 255;
Eingeladen[playerid] = 0;
SelectCharID[playerid] = Spieler[playerid][pMember];
SelectCharPlace[playerid] = 1;
Spieler[playerid][pModel] = ChosenSkin[playerid];
Spieler[playerid][pChar] = ChosenSkin[playerid];
SendClientMessage(playerid, COLOR_GRAD5, " Du kannst mit /help deine neuen Fraktionsbefehle betrachten");
SendClientMessage(playerid, COLOR_LIGHTRED, "* Benutze 'weiter' um dir den Charakter auszusuchen den du gerne benutzen möchtest.");
SendClientMessage(playerid, COLOR_LIGHTRED, "* Wenn du den richtigen gefunden hast, gib 'fertig' ein.");
}
else if(strcmp(tmp,"ablehnen",true) == 0)
{
format(string,sizeof(string)," %s hat die Einladung in die Fraktion %s abgelehnt!",sendername,Fracs[Eingeladen[playerid]-1]);
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(Spieler[i][pLeader] == Eingeladen[playerid])
{
SendClientMessage(i,COLOR_LIGHTBLUE,string);
}
}
}
Eingeladen[playerid] = 0;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "BENUTZUNG: /einladung [annehmen/ablehnen]");
}
return 1;
}