gutes TuT
Teams mit gTeam erstellen [UPDATED]
Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!
Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
-
-
hi
Habe ein Problem.
Bekomme immer folgende Errors
D:\Rockstar Games\GTA San Andreas\gamemodes\pvsk.pwn(227) : error 010: invalid function or declaration
D:\Rockstar Games\GTA San Andreas\gamemodes\pvsk.pwn(229) : error 010: invalid function or declaration
D:\Rockstar Games\GTA San Andreas\gamemodes\pvsk.pwn(230) : error 010: invalid function or declaration
D:\Rockstar Games\GTA San Andreas\gamemodes\pvsk.pwn(231) : error 010: invalid function or declaration
D:\Rockstar Games\GTA San Andreas\gamemodes\pvsk.pwn(232) : error 010: invalid function or declaration
D:\Rockstar Games\GTA San Andreas\gamemodes\pvsk.pwn(233) : error 010: invalid function or declaration
D:\Rockstar Games\GTA San Andreas\gamemodes\pvsk.pwn(234) : error 010: invalid function or declaration
D:\Rockstar Games\GTA San Andreas\gamemodes\pvsk.pwn(235) : error 010: invalid function or declaration
D:\Rockstar Games\GTA San Andreas\gamemodes\pvsk.pwn(236) : error 010: invalid function or declaration
D:\Rockstar Games\GTA San Andreas\gamemodes\pvsk.pwn(237) : error 010: invalid function or declaration
D:\Rockstar Games\GTA San Andreas\gamemodes\pvsk.pwn(239) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhaseHier mein Script
/*³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³Lorem Ipsum... :D
³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³³*/
#include <a_samp>
#if defined FILTERSCRIPT
new gTeam[MAX_PLAYERS];
#define TEAM_ZIVILISTENLS 0
#define TEAM_ZIVILISTENSF 1
#define TEAM_ZIVILISTENLV 2
#define TEAM_COPSLS 3
#define TEAM_COPSSF 4
#define TEAM_COPSLV 5
#define TEAM_GROVE 6 //in LS
#define TEAM_BALLAS 7 //in LS
#define TEAM_VARIOS 8 //in LS = Varios Los Aztecas
#define TEAM_VAGOS 9 //in LS = Los Santos Vagos
#define TEAM_RIFA 10 //in SF = San Fierro Rifa
#define TEAM_TRIADS 11 //in SF
#define TEAM_NANG 12 //in SF = Da Nang Boys
#define TEAM_MAFIA 13 //in LV
#define TEAM_BIKER 14 //in LV Wüste = Motorradgang
#define TEAM_TAXI 15 //in LS
#define TEAM_PILOT 16 //in SF
#define TEAM_BUS 17 //in LV#define TEAM_ADMIN 1337
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}#endif
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");AddPlayerClass(253,2775.0369,1253.6338,11.3125,0.6601,0,0,0,0,0,0); // BUS-LV
AddPlayerClass(100,693.7033,1951.4598,5.5432,179.2852,0,0,0,0,0,0); // BIKER-LV
AddPlayerClass(247,693.7033,1951.4598,5.5432,179.2852,0,0,0,0,0,0); // BIKER-LV
AddPlayerClass(248,693.7033,1951.4598,5.5432,179.2852,0,0,0,0,0,0); // BIKER-LV
AddPlayerClass(254,693.7033,1951.4598,5.5432,179.2852,0,0,0,0,0,0); // BIKER-LVAddPlayerClass(284,287.6382,1967.2449,17.6406,274.8347,0,0,0,0,0,0); // COPS-LV
AddPlayerClass(285,287.6382,1967.2449,17.6406,274.8347,0,0,0,0,0,0); // COPS-LV
AddPlayerClass(286,287.6382,1967.2449,17.6406,274.8347,0,0,0,0,0,0); // COPS-LV
AddPlayerClass(287,287.6382,1967.2449,17.6406,274.8347,0,0,0,0,0,0); // COPS-LVAddPlayerClass(10,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV
AddPlayerClass(101,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV
AddPlayerClass(12,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV
AddPlayerClass(13,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV
AddPlayerClass(136,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV
AddPlayerClass(14,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV
AddPlayerClass(142,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV
AddPlayerClass(143,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV
AddPlayerClass(144,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV
AddPlayerClass(15,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV
AddPlayerClass(151,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV
AddPlayerClass(156,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV
AddPlayerClass(168,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV
AddPlayerClass(169,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV
AddPlayerClass(17,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV
AddPlayerClass(170,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV
AddPlayerClass(180,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV
AddPlayerClass(182,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV
AddPlayerClass(54,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV
AddPlayerClass(183,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV
AddPlayerClass(184,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV
AddPlayerClass(263,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV
AddPlayerClass(75,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV
AddPlayerClass(186,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV
AddPlayerClass(185,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV
AddPlayerClass(188,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV
AddPlayerClass(19,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV
AddPlayerClass(216,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV
AddPlayerClass(20,2434.6672,1672.4431,10.8203,2.0871,0,0,0,0,0,0); // ZIVILISTEN-LV...Weitere... leider maximal 10 000 Zeichen pro Beitrag ...
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;
}switch(classid)
{
case 0: gTeam[playerid] = TEAM_BUS; // BUS
case 1..4: gTeam[playerid] = TEAM_BIKER; // BIKER
case 5..8: gTeam[playerid] = TEAM_COPSLV; // COPS LV
case 9..37: gTeam[playerid] = TEAM_ZIVILISTENLV; // ZIVI LV
case 38..44: gTeam[playerid] = TEAM_MAFIA; // MAFIA
case 45: gTeam[playerid] = TEAM_PILOT; // PILOT
case 46..49: gTeam[playerid] = TEAM_COPSSF; // COPS SF
case 50..77: gTeam[playerid] = TEAM_ZIVILISTENSF; // ZIVI SF
default: gTeam[playerid] = TEAM_ZIVILISTENLS; // noch nicht festgelegter Rest da hier grade nichts funzt >:-(
}
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}public OnPlayerDisconnect(playerid, reason)
{
return 1;
}public OnPlayerSpawn(playerid)
{
return 1;
}public OnPlayerDeath(playerid, killerid, reason)
{
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("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}hoffe da kann mir wer helfen oder mir das erklären vllt binn ich einfach zu doof
-
Lösch das
#if defined FILTERSCRIPT
un das #endif -
Lösch das
#if defined FILTERSCRIPT
un das #endifwieder die das selbe nur + dieses Warning D:\Rockstar Games\GTA San Andreas\gamemodes\pvsk.pwn(419) : warning 203: symbol is never used: "gTeam"
-
janu du setzt zwar gteam jeweils einer classid zu aber du benutzt es nicht
mach ganz unten ins script:
#pragma unused gTeam -
#pragma unused gTeam da is dann nur das eine Warning weg hab jetzt das #endif wieder reingemacht und an das Ende des scriptes gesetzt jetzt wird mir kein Error mer angezeigt ich hoffe es funzt auch.
-
Gutes tut
Aber hab ein Problem und zwar werden die Teams beim Spawn nicht eingeordnet ... also ich poste mal die "Betroffenen" teile des scripts also cmds Defines und OnPlayerRequestClass, Spawns:Defines:
#define MAX_STRING 255
#define CHECKPOINT_NONE 0
#define CHECKPOINT_HOME 12
#define gr�n 0x21DD00FF
#define COLOR_GRAD1 0xB4B5B7FF
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_GRAD3 0xCBCCCEFF
#define COLOR_GRAD4 0xD8D8D8FF
#define COLOR_GRAD5 0xE3E3E3FF
#define COLOR_GRAD6 0xF0F0F0FF
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_LIGHTRED 0xFF6347AA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_LIGHTGREEN 0x9ACD32AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_YELLOW2 0xF5DEB3AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_FADE1 0xE6E6E6E6
#define COLOR_FADE2 0xC8C8C8C8
#define COLOR_FADE3 0xAAAAAAAA
#define COLOR_FADE4 0x8C8C8C8C
#define COLOR_FADE5 0x6E6E6E6E
#define COLOR_PURPLE 0xC2A2DAAA
#define COLOR_DBLUE 0x2641FEAA
#define COLOR_ALLDEPT 0xFF8282AA
#define COLOR_NEWS 0xFFA500AA
#define COLOR_OOC 0xE0FFFFAA
#define COLOR 0xAA3333AA
#define OBJECTIVE_COLOR 0x64000064
#define COLOR_ADD 0x63FF60AA
#define COLOR_INVIS 0xAFAFAF00
#define COLOR_SPEC 0xBFC0C200
#define TEAM_COPS 0
#define TEAM_GANG 1new gTeam[MAX_PLAYERS];
new Text3D:LSPDsign; // zu erst definiere ich die Label mit dem Typ Text3D also als 3D Label
new pd1_gate;
new pd2_gate;
new gang1_gate;
new gang2_gate;
Spawns:
public OnGameModeInit()
{SetGameModeText("Bare Script");
ShowPlayerMarkers(1);
ShowNameTags(1);
AllowAdminTeleport(1);//Spawns
AddPlayerClass(280,1573.6563,-1694.7595,6.2188,179.5674,0,0,0,0,-1,-1); // spawn PD Garage 1 1
AddPlayerClass(285,1571.0732,-1694.7639,5.8906,177.6874,0,0,0,0,-1,-1); // spawn PD Garage2 2
AddPlayerClass(286,1569.4249,-1695.0605,5.8906,177.6874,0,0,0,0,-1,-1); // spawn PD Garage3 3
AddPlayerClass(283,1567.3881,-1695.1967,5.8906,174.3132,0,0,0,0,-1,-1); // spawn PD Garage4 (5 6 12-15 PD Skins) 4
AddPlayerClass(282,1567.3881,-1695.1967,5.8906,174.3132,0,0,0,0,-1,-1); // 5
AddPlayerClass(281,1567.3881,-1695.1967,5.8906,174.3132,0,0,0,0,-1,-1); // 6AddPlayerClass(144,738.3148,-1344.4114,13.5186,265.8338,0,0,0,0,0,0); // Gangspawn 7-10 7
AddPlayerClass(180,738.3148,-1344.4114,13.5186,265.8338,0,0,0,0,0,0); // Gangspawn 7-10 8
AddPlayerClass(19,738.3148,-1344.4114,13.5186,265.8338,0,0,0,0,0,0); // Gangspawn 7-10 9
AddPlayerClass(21,738.3148,-1344.4114,13.5186,265.8338,0,0,0,0,0,0); // Gangspawn 7-10 10
//OBJEKTE
pd1_gate = CreateObject(974, 1588.3318+3,-1637.8712,13.4276, 0.000000, 0.000000, 0.000000);
pd2_gate = CreateObject(974, 1588.3318-3,-1637.8712,13.4276, 0.000000, 0.000000, 0.000000);
gang1_gate = CreateObject(969, 773.29473876953, -1384.7893066406, 13.531056404114, 0, 0, 0.10000610351563);
gang2_gate = CreateObject(969, 773.4580078125, -1330.1999511719, 13.359999656677, 0, 0, 359);
//3D Labels
LSPDsign = Create3DTextLabel("/lspd um ins LSPD zu gelangen.",0xFFFFFFFF,1568.6133,-1690.1576,5.8906+2,1,0);
return 1;
}
OnPlayerCommandText:
public OnPlayerCommandText(playerid, cmdtext[])
{
new string[256];
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new cmd[256];
new giveplayerid, moneys, idx;cmd = strtok(cmdtext, idx);
if (strcmp(cmd, "/lspddach", true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,2.0, 1579.9001,-1634.9612,13.5615))
{
if(gTeam[playerid] == TEAM_COPS)
{
SetPlayerPos(playerid,1564.6764,-1665.1993,28.3956);
SendClientMessage(playerid,COLOR_GRAD1, "Du wurdest teleportiert!");
}
}
else
{
SendClientMessage(playerid,COLOR_GRAD1, "Du bist nicht am Aufzug oder nicht bei den Cops!");
}
return 1;
}
if (strcmp(cmd, "/lspdhof", true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,3.0, 1564.6764,-1665.1993,28.3956))
{
if(gTeam[playerid] == TEAM_COPS)
{
SetPlayerPos(playerid,1579.9001,-1634.9612,13.5615);
SendClientMessage(playerid,COLOR_GRAD1, "Du wurdest teleportiert!");
}
}
else
{
SendClientMessage(playerid,COLOR_GRAD1, "Du bist nicht am Aufzug oder nicht bei den Cops!");
}
return 1;
}if (strcmp(cmd, "/lspd", true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,3.0, 1568.6133,-1690.1576,5.8906))
{
if(gTeam[playerid] == TEAM_COPS)
{
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,257.0956,83.2443,1002.4453);
SendClientMessage(playerid,COLOR_GRAD1, "Du wurdest teleportiert!");
}
}
else
{
SendClientMessage(playerid,COLOR_GRAD1, "Du bist nicht am Aufzug oder nicht bei den Cops!");
}
return 1;
}
//TOREif (strcmp(cmdtext, "/pdopen", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,30.0, 1588.4207,-1638.1235,13.4103))
{
if(gTeam[playerid] == TEAM_COPS)
{
MoveObject(pd1_gate,1588.2275+3,-1637.8712,13.4223-8,4);
MoveObject(pd2_gate,1588.3318-3,-1637.8712,13.4276-8,4);
SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Polizei Gelände!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1,"Du bist zu weit weg oder nicht bei den Cops!");
return 1;
}
}if (strcmp(cmdtext, "/pdclose", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,30.0, 1588.4207,-1638.1235,13.4103))
{
if(gTeam[playerid] == TEAM_COPS)
{
MoveObject(pd1_gate,1588.2275+3,-1637.8712,13.4223,4);
MoveObject(pd2_gate,1588.3318-3,-1637.8712,13.4276,4);
SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Polizei Gelände!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1,"Du bist zu weit oder nicht bei den Cops!");
return 1;
}
}if (strcmp(cmdtext, "/gangopen", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,30.0, 778.2847,-1330.0176,13.5503,355.9290))
{
if(gTeam[playerid] == TEAM_GANG)
{
MoveObject(gang1_gate,773.29473876953, -1384.7893066406, 13.531056404114-8,4);
MoveObject(gang2_gate,773.4580078125, -1330.1999511719, 13.359999656677-8,4);
SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Gang Gelände!");
return 1;
}
}
else if(IsPlayerInRangeOfPoint(playerid,30.0, 777.8217,-1385.0905,13.7197,190.8008))
{
if(gTeam[playerid] == TEAM_GANG)
{
MoveObject(gang1_gate,773.29473876953, -1384.7893066406, 13.531056404114-8,4);
MoveObject(gang2_gate,773.4580078125, -1330.1999511719, 13.359999656677-8,4);
SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Gang Gelände!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1,"Du bist zu weit weg oder in keiner Gang!");
return 1;
}
}if (strcmp(cmdtext, "/gangclose", true) == 0)
{
if(gTeam[playerid] == TEAM_GANG)
{
MoveObject(gang1_gate,773.29473876953, -1384.7893066406, 13.531056404114,4);
MoveObject(gang2_gate,773.4580078125, -1330.1999511719, 13.359999656677,4);
SendClientMessage(playerid, COLOR_YELLOW,"ACHTUNG: Gang Gelände!");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1,"Du bist zu weit weg!");
return 1;
}
}
if (strcmp(cmdtext, "/showteam", true) == 0)
{
SendClientMessage(playerid, COLOR_YELLOW,"TEAM: %d",gTeam);
return 1;
}
return 0;
}OnSpawn
public OnPlayerSpawn(playerid)
{
PlayerPlaySound(playerid, 0, 0.0, 0.0, 0.0);
SetPlayerInterior(playerid,0);
TogglePlayerClock(playerid,0);
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, 30000);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,300);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,300);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,300);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,300);
SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,300);
SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,300);if(gTeam[playerid] == TEAM_COPS)
{
GivePlayerWeapon(playerid,WEAPON_COLT45,100);
GivePlayerWeapon(playerid,WEAPON_M4,300);
GivePlayerWeapon(playerid,WEAPON_MP5,500);
return 1;
}
else if(gTeam[playerid] == TEAM_GANG)
{
GivePlayerWeapon(playerid,WEAPON_DEAGLE,100);
GivePlayerWeapon(playerid,WEAPON_AK47,300);
GivePlayerWeapon(playerid,WEAPON_MP5,500);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_YELLOW,"Invalid Class!");
}
return 1;
}
Zuletzt RequestClass
public OnPlayerRequestClass(playerid,classid)
{
PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
SetPlayerInterior(playerid,11);
SetPlayerPos(playerid,508.7362,-87.4335,998.9609);
SetPlayerFacingAngle(playerid,0.0);
SetPlayerCameraPos(playerid,508.7362,-83.4335,998.9609);
SetPlayerCameraLookAt(playerid,508.7362,-87.4335,998.9609);switch(classid)
{
case 0..5: gTeam[playerid] = TEAM_COPS; // 7. bis 10. Skin
case 6..9: gTeam[playerid] = TEAM_GANG; // 5. 6. und 12. bis 15. Skin
}
return 1;
} -
Wie füge ich bei der Skin/Gang Auswahl noch nen Namen über den Skin, also das man sieht welcher Skin zu welcher Gang gehört
-
GameText?
-
Also wenn ichs richtig verstehe geht es so ab
Man kommt auf den Server dann sucht man sich etwas aus und spawn an der stelle wo man halt mit dem TEam spawnt
Kann man das auch machen das sie einfach als Zivies Spawnen und dann ein Admin sie mit /zumteam ins Team setzen kann und das es auch in %s.txt gepseichert wird die Position und der Skin und das er in diesem TEam ist ^^?[MSIE_newline_end ] -
Hey wie mache ich das, dass jede gang nen eigenen Hinterrgrund hat also alle groves sieht man in der grove street Beim Skin auswählen,
alle cops Beim PD und alle Ballas Beim ballas spam punkt? Ich versuche das immer selber aber beckomme immer 10000ende errors -
Wie füge ich bei der Skin/Gang Auswahl noch nen Namen über den Skin, also das man sieht welcher Skin zu welcher Gang gehört
Ich poste es ma aus meinem script:
Mach das so bei: public OnPlayerRequestClass(playerid, classid)
in dem machst du folgendes:
if(classid == 0)
{
gTeam[playerid] = Team_Army;
GameTextForPlayer(playerid,"~n~~g~Team Army",2000,3);
SetPlayerColor(playerid, deine_farbe);
}
else if(classid == 1)
{
gTeam[playerid] = Team_Cop;
GameTextForPlayer(playerid,"~n~~b~Team Cop",2000,3);
SetPlayerColor(playerid, deine_farbe);
}Mfg:Tigerkiller
-
Hi wie setze ich da fest wo die Team´s spawnen sollen??? also z.B. die Polizei im LSPD und so???
-
Nabend Das Poste ich auch mal aus meinem GM
suche im script nach public OnPlayerRequestClass(playerid, classid)
Darin fügst du wiederum folgendes ein:
if(classid == 0)
{
gTeam[playerid] = Team_Army; // Dein Team
GameTextForPlayer(playerid,"~n~~g~Team Army",2000,3); Team Name was über der ClassSelection stehen soll
SetPlayerColor(playerid, Team_Color_Army); // Farbe die der Spieler beim spawn bekommt
}
return 1;
}Hoffe ich konnte helfen
Mfg:Tigerkiller -
nett :>
9/10
-
hi
ich finde dein tutorial echt gut nur hänge ich am schritt 3
kann mir jemand helfn? habe auch schon gegooglt. nix gefunden
würde mich über nette antworten freuen
mfg strong -
Woran genau liegts denn??
Ich hab es zum Beispiel ausgebaut, da die Franktionsmember nur einen bestimmten Skin zugewiesen kriegen wenn sie im Dienst sind.. -
wo definiert man denn dann die skins?
-
Auch nice
9 / 10^^
-
Sorry das ich diesen Thread ausgrabe aber habe da ein Problem.
Bei mir werden die Skins beim Skin auswahlmenü nicht angezeigt.
Codes:
public OnGameModeInit()
{
AddPlayerClass(269, x, y, z,0,0,0,0,0,0); // Hab die coords einfach ma rausgenommen ^^
AddPlayerClass(1, x, y, z,0,0,0,0,0,0);
return 1;
}Defines & News:
new gTeam[MAX_PLAYERS];#define TEAM_TESTER1 0
#define TEAM_TESTER2 1
#define TEAM_TESTER3 2
#define TEAM_TESTER4 3
#define TEAM_TESTER5 4
#define TEAM_ZIVILISTEN 5RequestClass:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 2875.9609,-1591.3766,22.3667);
SetPlayerCameraPos(playerid, 2875.9609,-1591.3766,22.3667);
SetPlayerCameraLookAt(playerid, 2875.9609,-1591.3766,22.3667);switch(classid)
{
case 0: gTeam[playerid] = TEAM_TESTER1;
case 1: gTeam[playerid] = TEAM_TESTER2;
case 2: gTeam[playerid] = TEAM_TESTER3;
case 3: gTeam[playerid] = TEAM_TESTER4;
case 4: gTeam[playerid] = TEAM_TESTER5;
default: gTeam[playerid] = TEAM_ZIVILISTEN;
}
return 1;
} -