public OnPlayerRequestClass(playerid, classid)
{
if(IsPlayerNPC(playerid)) return 1;
//Schwarze Balken
TextDrawShowForPlayer(playerid,lbt);
TextDrawShowForPlayer(playerid,lbb);
//Loginscreen Anzeigen
SetSpectating(playerid);
//Spielerverbiung herstellen
InitPlayerConnection(playerid);
//Copyright Nachricht
SendClientMessage(playerid,COLOR_YELLOW,"Dark-Trigardon Reloaded Gamemode by Nemesus.de!";
return 1;
}
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid))
{
IsLogged[playerid] = 1;
return 1;
}
new string[128];
format(string, sizeof(string), "* %s(%d) hat den Server betreten.", GetName(playerid), playerid);
SendClientMessageToAll(COLOR_GREY, string;
public OnPlayerDisconnect(playerid, reason)
{
new string[150];
if(IsPlayerNPC(playerid)) return 1;
new vehicleid = GetPlayerVehicleID(playerid);
//Taxisystem
TransportDuty[playerid] = 0;
KillTimer(TimerTaxi[playerid]);
if (GetPVarInt(playerid, "Dienst") == 1)
{
TaxiDrivers -= 1;
SetPlayerSkin(playerid,oldskin[playerid]);
oldskin[playerid] = 0;
}
if(GetPVarInt(playerid, "ImDienst") > 0)
{
TransportDuty[playerid] = 0;
SendClientMessage(playerid,COLOR_YELLOW2,"Du hast deinen Dienst als Taxifahrer beendet!";
SetPVarInt(playerid, "ImDienst", 0);
if(vehicleid == racingtaxi1)
{
format(string, sizeof(string), "");
Update3DTextLabelText(racingtaxi11, COLOR_YELLOW, string;
return 1;
}
if(vehicleid == racingtaxi2)
{
format(string, sizeof(string), "");
Update3DTextLabelText(racingtaxi22, COLOR_YELLOW, string;
return 1;
}
if(vehicleid == racingtaxi3)
{
format(string, sizeof(string), "");
Update3DTextLabelText(racingtaxi33, COLOR_YELLOW, string;
return 1;
}
}
//Handysystem
new caller = Mobile[playerid];
if(caller != 255)
{
if(caller < 255)
{
SendClientMessage(caller, COLOR_BRIGHTRED, "Tüt - Tüt - Tüt die Leitung ist tod!";
Mobile[caller] = 255;
}
Mobile[playerid] = 255;
}
//BSN
if(GetPVarInt(playerid, "Bestellung") > 0)
{
DriveinMenBusy = 0;
}
//Offlineflucht
new wlevel;
wlevel = GetPlayerWantedLevel(playerid);
if(wlevel > 0)
{
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* Der Spieler %s begann Offlineflucht, seine Wanteds[%d] wurden gespeichert.", sendername,wlevel);
SendRadioMessage(1, COLOR_LIGHTBLUE, string;
pStats[playerid][pWanted] = wlevel;
}
Und so wieter sind immer die Zeilen mit:
SendClientMessage(caller, COLOR_BRIGHTRED, "Tüt - Tüt - Tüt die Leitung ist tod!";
Vorher stand es so da:
SendClientMessage(caller, COLOR_BRIGHTRED, "Tüt - Tüt - Tüt die Leitung ist tod!");
Mit Klammer halt am ende da da immer Errors waren habe ich das entfernt und habe nun diese´Errors?
mfg