Hey Leute....
Ich habe das mit den Klassen (ClassSelection) jetzt hin gekriegt.
Jetzt habe ich folgendes Problem:
Beim spawnen, kommt dieser Fehler:
Kennt bestimmt jeder, der mal gecheatet hat,
und mit nem Boot aufm Wasser airbreaked^^
Mein OnPlayerSpawn sieht so aus:
public OnPlayerSpawn(playerid)
{
//SpielerInfo[playerid][sModel] = GetPlayerSkin(playerid);
//TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawHideForPlayer(playerid, Textdraw0);
TextDrawHideForPlayer(playerid, Textdraw5);
TextDrawHideForPlayer(playerid, Textdraw6);
TextDrawHideForPlayer(playerid, Textdraw7);
TextDrawHideForPlayer(playerid, Textdraw8);
TextDrawHideForPlayer(playerid, Textdraw9);
//TextDrawShowForPlayer(playerid, Textdraw5);
//TextDrawShowForPlayer(playerid, Textdraw6);
//TextDrawShowForPlayer(playerid, Textdraw7);
//TextDrawShowForPlayer(playerid, Textdraw8);
//TextDrawShowForPlayer(playerid, Textdraw9);
if(SpielerInfo[playerid][sTeam] == 1)
{
if(SpielerInfo[playerid][sRank] == 1)
{
SetPlayerPos(playerid,1912.6583,-575.4293,59.5028);
SetPlayerFacingAngle(playerid,2.5385);
GivePlayerWeapon(playerid, 24, 100);
GivePlayerWeapon(playerid, 26, 50);
GivePlayerWeapon(playerid, 31, 250);
return 1;
}
else if(SpielerInfo[playerid][sRank] == 2)
{
SetPlayerPos(playerid,1912.6583,-575.4293,59.5028);
SetPlayerFacingAngle(playerid,2.5385);
GivePlayerWeapon(playerid, 4, 1);
GivePlayerWeapon(playerid, 23, 150);
GivePlayerWeapon(playerid, 34, 100);
return 1;
}
else if(SpielerInfo[playerid][sRank] == 3)
{
SetPlayerPos(playerid,1912.6583,-575.4293,59.5028);
SetPlayerFacingAngle(playerid,2.5385);
GivePlayerWeapon(playerid, 29, 130);
GivePlayerWeapon(playerid, 35, 2);
GivePlayerWeapon(playerid, 16, 5);
return 1;
}
else
{
SendClientMessage(playerid,0x30000000,"Du bist verbuggt, bitte relogge so schnell wie möglich!");
//return 1;
}
return 1;
}
else if(SpielerInfo[playerid][sTeam] == 2)
{
if(SpielerInfo[playerid][sRank] == 4)
{
SetPlayerPos(playerid,1976.2473,-402.2062,85.0356);
SetPlayerFacingAngle(playerid,110.5216);
GivePlayerWeapon(playerid, 24, 100);
GivePlayerWeapon(playerid, 27, 50);
GivePlayerWeapon(playerid, 30, 250);
return 1;
}
else if(SpielerInfo[playerid][sRank] == 5)
{
SetPlayerPos(playerid,1976.2473,-402.2062,85.0356);
SetPlayerFacingAngle(playerid,110.5216);
GivePlayerWeapon(playerid, 4, 1);
GivePlayerWeapon(playerid, 23, 150);
GivePlayerWeapon(playerid, 34, 100);
return 1;
}
else if(SpielerInfo[playerid][sRank] == 6)
{
SetPlayerPos(playerid,1976.2473,-402.2062,85.0356);
SetPlayerFacingAngle(playerid,110.5216);
GivePlayerWeapon(playerid, 32, 200);
GivePlayerWeapon(playerid, 36, 2);
GivePlayerWeapon(playerid, 16, 5);
return 1;
}
else
{
SendClientMessage(playerid,0x30000000,"Du bist verbuggt, bitte relogge so schnell wie möglich!");
//return 1;
}
return 1;
}
return 1;
}
Bitte um Hilfe.