GG nice Typ bin öfter mit ihm in Ts
Ganz ok deine Videos
Beiträge von reaL.
-
-
Hey ich habe das Jetze so
es funktioniert auch aber wenn ich Sterbe und aufm Friedhof komme dann sehe ich ganz kurz woran liegt das ?public OnPlayerRequestClass(playerid, classid)
{
if(sInfo[playerid][PTot] == 1)
{
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"Du bist soeben gestorben!");
SendClientMessageEx(playerid,weiß,"Gleich wird ein Wunder passieren!");
SetTimer("sekunde",sInfo[playerid][tott],0);
SetPlayerVirtualWorld(playerid,89);
SetSpawnInfo(playerid,0,sInfo[playerid][Skin],816.6987,-1103.0229,25.7914,271.5753,0,0,0,0,0,0);
SpawnPlayer(playerid);
SetCameraBehindPlayer(playerid);
return 1;
}
if(sInfo[playerid][jailtime] > 0)
{
SendClientMessageEx(playerid,IGELB,"Du musst deine Zeit im Knast noch absitzen!");
SetTimer("sekunde",sInfo[playerid][jailtime],0);
SetPlayerInterior(playerid,10);
SetPlayerVirtualWorld(playerid,24);
SetSpawnInfo(playerid,0,sInfo[playerid][Skin],sInfo[playerid][kx],sInfo[playerid][ky],sInfo[playerid][kz],0.0,0,0,0,0,0,0);
SpawnPlayer(playerid);
SetCameraBehindPlayer(playerid);
return 1;
}
else
{
SetSpawnInfo(playerid,0,sInfo[playerid][Skin],1760.8271,-1895.8221,13.5615,268.2114,0,0,0,0,0,0);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SpawnPlayer(playerid);
return 1;
}
}public OnPlayerSpawn(playerid)
{
if(sInfo[playerid][PTot] == 1)
{
SetPlayerVirtualWorld(playerid,89);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,816.6987,-1103.0229,25.7914);
SetCameraBehindPlayer(playerid);
SetPlayerFacingAngle(playerid,271.5753);
SetPlayerSkin(playerid,sInfo[playerid][Skin]);
return 1;
}
else if(sInfo[playerid][jailtime] > 0)
{
SetPlayerInterior(playerid,10);
SetPlayerVirtualWorld(playerid,24);
SetPlayerPos(playerid,sInfo[playerid][kx],sInfo[playerid][ky],sInfo[playerid][kz]);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,sInfo[playerid][Skin]);
return 1;
}
else
{
if(sInfo[playerid][spawnchange]==0)
{
SetPlayerPos(playerid,1760.8271,-1895.8221,13.5615);
SetPlayerFacingAngle(playerid,268.2114);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,sInfo[playerid][Skin]);
return 1;
}
if(sInfo[playerid][spawnchange]==1)
{
new fID;
fID = sInfo[playerid][fraktion];
SetPlayerPos(playerid, fInfo[fID][f_x],fInfo[fID][f_y],fInfo[fID][f_z]);
SetPlayerFacingAngle(playerid, fInfo[fID][f_r]);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, fInfo[fID][f_inter]);
SetPlayerVirtualWorld(playerid, fInfo[fID][f_world]);
SetPlayerSkin(playerid,sInfo[playerid][Skin]);
GivePlayerWeapon(playerid, fInfo[fID][f_waffe1], fInfo[fID][f_ammo1]);
GivePlayerWeapon(playerid, fInfo[fID][f_waffe2], fInfo[fID][f_ammo2]);
GivePlayerWeapon(playerid, fInfo[fID][f_waffe3], fInfo[fID][f_ammo3]);
GivePlayerWeapon(playerid, fInfo[fID][f_waffe4], fInfo[fID][f_ammo4]);
return 1;
}
}
return 1;
} -
Also das beim Connect machen ?
-
pId = u nicht i
ocmd:verbrechen(playerid,params[])
{
if(!isPlayerInFrakt(playerid,1))return SendClientMessage(playerid,rot,"Du bist nicht im SAPD!");
new pID,wLevel;
if(sscanf(params,"ui",pID,wLevel))return SendClientMessage(playerid,duneklhelblau,"Info: /Fandungslevel[playerid][fandungslevel]");
if(wLevel<1||wLevel>6)return SendClientMessage(playerid,rot,"Falsche Fandungslevel!");
SetPlayerWantedLevel(pID,wLevel);
return 1;
} -
Wenn ich connecte will ich das wenn man tot ist das man wieder aufm Friedhof spawnt
@ZeusLukas
Probier ich morgen ausRed_Romeo
Werde es morgen hier Posten -
Nach Tot nicht aufm Friedhof ?
Kann mir mal wer helfen finde da keinen Fehler und habe auch eig nichts verändert
-
Hey ich habe das Problem das ich nach dem Tot immernoch am Friedhof gespawnt werde aber wieso ?
Jeffry:
hast du ein Plan ?
public OnPlayerSpawn(playerid)
{
if(sInfo[playerid][PTot] == 1)
{
SetPlayerVirtualWorld(playerid,89);
SetPlayerPos(playerid,1760.8271,-1895.8221,13.5615);
SetPlayerFacingAngle(playerid,271.5753);
SetCameraBehindPlayer(playerid);
}
else if(sInfo[playerid][jailtime] > 0)
{
SetPlayerInterior(playerid,10);
SetPlayerVirtualWorld(playerid,24);
SetPlayerPos(playerid,sInfo[playerid][kx],sInfo[playerid][ky],sInfo[playerid][kz]);
SetCameraBehindPlayer(playerid);
}
else
{
if(sInfo[playerid][spawnchange]==0)
{
SetPlayerPos(playerid,1760.8271,-1895.8221,13.5615);
SetPlayerFacingAngle(playerid,268.2114);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetCameraBehindPlayer(playerid);
}
if(sInfo[playerid][spawnchange]==1)
{
new fID;
fID = sInfo[playerid][fraktion];
SetPlayerPos(playerid, fInfo[fID][f_x],fInfo[fID][f_y],fInfo[fID][f_z]);
SetPlayerFacingAngle(playerid, fInfo[fID][f_r]);
SetPlayerInterior(playerid, fInfo[fID][f_inter]);
SetPlayerVirtualWorld(playerid, fInfo[fID][f_world]);
SetCameraBehindPlayer(playerid);
GivePlayerWeapon(playerid, fInfo[fID][f_waffe1], fInfo[fID][f_ammo1]);
GivePlayerWeapon(playerid, fInfo[fID][f_waffe2], fInfo[fID][f_ammo2]);
GivePlayerWeapon(playerid, fInfo[fID][f_waffe3], fInfo[fID][f_ammo3]);
GivePlayerWeapon(playerid, fInfo[fID][f_waffe4], fInfo[fID][f_ammo4]);
}
}
SetPlayerSkin(playerid,sInfo[playerid][Skin]);
return 1;
}public OnPlayerRequestClass(playerid, classid)
{
if(sInfo[playerid][PTot] == 1)
{
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"");
SendClientMessageEx(playerid,weiß,"Du bist soeben gestorben!");
SendClientMessageEx(playerid,weiß,"Gleich wird ein Wunder passieren!");
SetTimer("sekunde",sInfo[playerid][tott],0);
SetPlayerVirtualWorld(playerid,89);
SetPlayerPos(playerid,816.6987,-1103.0229,25.7914);
}
if(sInfo[playerid][jailtime] > 0)
{
SendClientMessageEx(playerid,IGELB,"Du musst deine Zeit im Knast noch absitzen!");
SetTimer("sekunde",sInfo[playerid][jailtime],0);
SetPlayerInterior(playerid,10);
SetPlayerVirtualWorld(playerid,24);
SetPlayerPos(playerid,sInfo[playerid][kx],sInfo[playerid][ky],sInfo[playerid][kz]);
}
else
{
SetSpawnInfo(playerid,0,sInfo[playerid][Skin],0,0,0,0,0,0,0,0,0,0);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SpawnPlayer(playerid);
}
return 1;
} -
-
ocmd:fahrrad(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,30.0,1773.0819,-1896.1542,13.5516))
{
if(GetPlayerScore(playerid) >= 4) return SendClientMessage(playerid, RED,"Du kannst dir kein Fahrrad mieten, da du über Level 4 bist!");
Mietfahrrad[playerid] = CreateVehicle(481, 1778.7252, -1896.2073, 12.8533, 267.3409,-1,-1,100);
return 1;
}
return 1;
} -
ocmd:fahrrad(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,30.0,1773.0819,-1896.1542,13.5516));
{
if(GetPlayerScore(playerid) >= 4) return SendClientMessage(playerid, RED,"Du bist nicht mehr Level 4!");
Mietfahrrad[playerid] = CreateVehicle(481, 1778.7252, -1896.2073, 12.8533, 267.3409,-1,-1,100);
return 1;
}
}
return 1;
} -
Ich suche die Animation wo der Spieler am Pc sitzt und etwas tut bzw für Rezeptionen z.b
-
Schon gut Habs hinbekommen
-
Suche dieses Object
oder ein Anderes was in die 1 Tür/Object beim LSPD Passt
http://www11.pic-upload.de/21.07.15/i85xknwffmt.png
Ne die Türen gefallen mir nicht wisst ihr eine ID von Glas ? -
Suche dieses Object
oder ein Anderes was in die 1 Tür/Object beim LSPD Passt
http://www11.pic-upload.de/21.07.15/i85xknwffmt.png -
Kann man da noch irgwndwas machen ?
-
Nutze doch das Inc. Damit geht sehr viel Besser und einfacher
-
Du musst zuvor GetActorHealth nutzen, außerdem musst du abfragen, welcher Actor den Damage bekommen hat.
Erst dann kannst du, falls so gewollt, den amount abziehen.public OnPlayerGiveDamageActor(playerid, damaged_actorid, Float: amount, weaponid, bodypart)
{
new string[128], attacker[MAX_PLAYER_NAME], Float:health;
new weaponname[24];
GetPlayerName(playerid, attacker, sizeof (attacker));
GetWeaponName(weaponid, weaponname, sizeof (weaponname));
if(damaged_actorid == RezepLady)
{
format(string, sizeof(string), "%s has made %.0f damage to actor id %d, weapon: %s", attacker, -amount, RezepLady, weaponname);
SendClientMessageToAll(0xFFFFFFFF, string);
GetActorHealth(RezepLady, health);
SetActorHealth(RezepLady, health-amount);
}
return 1;
}da vlt hilft dir das weiter
-
Hallo
Mein Linie befehl geht nur wenn ich die cars mit CreateVehicle erstelle aber nicht mit CreateVehicleEx aber wieso ?
p.s nicht Mein Scriptdas habe ich im einem Filterscript Stehen
new bus[16];
new Text3D:Busl[sizeof(bus)];stock CreateVehicleEx(vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawn_delay, bool:reset=false)
{
return CallRemoteFunction("ext_CreateVehicleEx", "dffffdddd",vehicletype, x, y, z, rotation, color1, color2, respawn_delay, reset);
}public OnFilterScriptInit()
{
bus[0] = CreateVehicleEx(431, 1748.0267, -1800.7855, 12.5372, -13.0000, 226, 226, 180, true);
bus[1] = CreateVehicleEx(431, 1743.8179, -1799.8168, 12.5372, -13.0000, 226, 226, 180, true);
bus[2] = CreateVehicleEx(431, 1740.0341, -1798.8628, 12.5372, -15.0000, 226, 226, 180, true);
bus[3] = CreateVehicleEx(431, 1736.1354, -1797.7816, 12.5372, -15.0000, 226, 226, 180, true);
bus[4] = CreateVehicleEx(431, 1732.1914, -1796.7300, 12.5372, -15.0000, 226, 226, 180, true);
bus[5] = CreateVehicleEx(431, 1728.0614, -1795.6019, 12.5372, -15.0000, 226, 226, 180, true);
bus[6] = CreateVehicleEx(431, 1723.7610, -1794.4852, 12.5372, -15.0000, 226, 226, 180, true);
bus[7] = CreateVehicleEx(431, 1715.3442, -1792.7511, 12.5372, 0.0000, 226, 226, 180, true);
bus[8] = CreateVehicleEx(431, 1710.4001, -1792.7511, 12.5372, 0.0000, 226, 226, 180, true);
bus[9] = CreateVehicleEx(431, 1705.3392, -1792.7511, 12.5372, 0.0000, 226, 226, 180, true);
bus[10] = CreateVehicleEx(437, 1725.2415, -1753.1591, 12.5474, 180.0000, 226, 226, 180, true);
bus[11] = CreateVehicleEx(437, 1720.2415, -1753.1591, 12.5474, 180.0000, 226, 226, 180, true);
bus[12] = CreateVehicleEx(437, 1715.2415, -1753.1591, 12.5474, 180.0000, 226, 226, 180, true);
bus[13] = CreateVehicleEx(437, 1710.2415, -1753.1591, 12.5474, 180.0000, 226, 226, 180, true);
bus[14] = CreateVehicleEx(437, 1705.2415, -1753.1591, 12.5474, 180.0000, 226, 226, 180, true);
bus[15] = CreateVehicleEx(431, 1752.5229, -1801.5945, 13.6621, 347.6127, 226, 226, 180, true);
for(new i=0;i<sizeof(bus);i++)
{
Busl[i] = Create3DTextLabel("Leerfahrt",Blau, 0.0, 0.0, 0.0, 15.0, 0,1);
Attach3DTextLabelToVehicle(Busl[i],bus[i], 0.0, 0.0, 2.0);
}
return 1;
}befehl
CMD:linie(playerid)
{
new veh = GetPlayerVehicleID(playerid);
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0x33CCFFAA,"Du bist in Keinem Fahrzeug!");
for(new i = 0; i<sizeof(bus); i++)
{
if(veh == bus[i])
{
if(GetCurrentStat(0,playerid) == 3)
{
if(Busfahrer[playerid][bus_Aktiv]==true)
{
Update3DTextLabelText(Busl[i], Blau, "Leerfahrt");
Busfahrer[playerid][bus_Aktiv]=false;
DisablePlayerCheckpoint(playerid);
return 1;
}
else
{
return ShowPlayerDialog(playerid,DIALOG_BUSFAHRER,DIALOG_STYLE_LIST,"Busfahrplan","Route 1\nRoute 2","Wählen","Abbrechen");
}
}
}
}
return 1;
}funktion aus dem GM
forward ext_CreateVehicleEx(vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawn_delay, bool:reset);
public ext_CreateVehicleEx(vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawn_delay, bool:reset) return CreateVehicleEx(vehicletype, x, y, z, rotation, color1, color2, respawn_delay, reset);stock CreateVehicleEx(vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawn_delay, bool:reset=false)
{
new vehicleid;
if(vehicletype < 400 || vehicletype > 611)return 0;
vehicleid = CreateVehicle(vehicletype, x, y, z, rotation, color1, color2, respawn_delay);
if(Vehicle[vehicleid][vehMotor])KillTimer(Vehicle[vehicleid][VehicleTimer]);
Vehicle[vehicleid][vehMotor] = false;
Vehicle[vehicleid][vehLicht] = false;
Vehicle[vehicleid][vehHaube] = false;
Vehicle[vehicleid][vehKRaum] = false;
Vehicle[vehicleid][vehPosX2] = x;
Vehicle[vehicleid][vehPosY2] = y;
Vehicle[vehicleid][vehPosZ2] = z;
Vehicle[vehicleid][vehText] = CreateDynamic3DTextLabel(" ", COLOR_WHITE, 50.0, 60.0, 110.0, 20.0, INVALID_PLAYER_ID, vehicleid, 0, -1, -1, -1, 100.0);
if(reset == true)
{
Vehicle[vehicleid][vehTankKM] = 0;
Vehicle[vehicleid][vehKMStandCount] = 0;
Vehicle[vehicleid][vehKMStand] = 0;
Vehicle[vehicleid][vehFuel] = VehicleData[vehicletype-400][vehMaxTank];
Vehicle[vehicleid][vehNeonID] = 0;
DestroyDynamicObject(Vehicle[vehicleid][vehNeon1]);
DestroyDynamicObject(Vehicle[vehicleid][vehNeon2]);
Vehicle[vehicleid][vehNeon1] = INVALID_OBJECT_ID;
Vehicle[vehicleid][vehNeon2] = INVALID_OBJECT_ID;
}
return vehicleid;
} -
Jeffry:
also so dann ?
stock CreateVehicleEx(vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawn_delay, bool:reset=false)
{
return CallRemoteFunction("ext_CreateVehicleEx", "");
}C:\Users\tobi\Desktop\edit\filterscripts\bus.pwn(70) : warning 203: symbol is never used: "reset"
C:\Users\tobi\Desktop\edit\filterscripts\bus.pwn(70) : warning 203: symbol is never used: "respawn_delay"
C:\Users\tobi\Desktop\edit\filterscripts\bus.pwn(70) : warning 203: symbol is never used: "color2"
C:\Users\tobi\Desktop\edit\filterscripts\bus.pwn(70) : warning 203: symbol is never used: "color1"
C:\Users\tobi\Desktop\edit\filterscripts\bus.pwn(70) : warning 203: symbol is never used: "rotation"
C:\Users\tobi\Desktop\edit\filterscripts\bus.pwn(70) : warning 203: symbol is never used: "z"
C:\Users\tobi\Desktop\edit\filterscripts\bus.pwn(70) : warning 203: symbol is never used: "y"
C:\Users\tobi\Desktop\edit\filterscripts\bus.pwn(70) : warning 203: symbol is never used: "x"
C:\Users\tobi\Desktop\edit\filterscripts\bus.pwn(70) : warning 203: symbol is never used: "vehicletype" -
Hey ich habe ein Ordner wo ich die Api.dll und die API.ahk drinne habe und mein Keybinder script aber wenn ich es starte bekomme ich immer den Error
Die API.dll konnte nicht gefunden werden.
Der Keybinder wird nun Beendet.ich hatte das schonmal gelöst weiß aber nichtmehr wie