Hi wollte das Sexsystem mit den Aktors was hier mal im Forum gepostet wurde in mein Script einfügen,
Doch es klappt irgendwie nicht.. ich drücke die Taste F um es auszuführen, doch es wird nur das Geld abgezogen..
Code
forward Excitement(playerid,bitchid);
public Excitement(playerid,bitchid)
{
new Float:phealth;
GetPlayerHealth(playerid,phealth);
if(Spieler[playerid][excMod] == 0)
{
Spieler[playerid][excMod] = 1;
}
else if(Spieler[playerid][excMod] == 1)
{
Spieler[playerid][excMod] = 2;
if(bitchid != 1) { Spieler[playerid][excMod] = 3; }
}
else if(Spieler[playerid][excMod] == 2)
{
Spieler[playerid][excMod] = 3;
}
else if(Spieler[playerid][excMod] == 3)
{
Spieler[playerid][pExcitement] = 0.0;
if((bitchid == 0) || (bitchid == 3)) TextDrawSetString(gagnfuck,"Druecke die Linke und Rechte Maustaste abwechselnd.");
else TextDrawSetString(gagnfuck,"Druecke die Linke und Rechte Maustaste abwechselnd.");
TextDrawShowForPlayer(playerid,gagnfuck);
TextDrawShowForPlayer(playerid,exctext);
TextDrawShowForPlayer(playerid,bshadow);
if(bitchid == 3)
{
ClearAnimations(playerid);
ClearActorAnimations(Bitch[bitchid][bID]);
}
ApplyAnimation(playerid,iBitchAnimLib[bitchid][8],iBitchAnimLib[bitchid][9],4,1,0,0,1,0,1);
ApplyActorAnimation(Bitch[bitchid][bID],iBitchAnimLib[bitchid][6],iBitchAnimLib[bitchid][7],4.3,1,0,0,0,0);
PlayerTextDrawShow(playerid,Spieler[playerid][ExcBalken]);
Spieler[playerid][excMod] = 4;
}
else if(Spieler[playerid][excMod] == 4)
{
if(Spieler[playerid][pExcitement] > 0) { Spieler[playerid][pExcitement] -= 3.0; }
if(Spieler[playerid][pExcitement] < 86.0) //sex/bj NOT complete
{
PlayerTextDrawHide(playerid,Spieler[playerid][ExcBalken]);
PlayerTextDrawTextSize(playerid,Spieler[playerid][ExcBalken],Spieler[playerid][pExcitement]+538.0,2.0);
PlayerTextDrawShow(playerid,Spieler[playerid][ExcBalken]);
if(bitchid==0)
{
new rand=random(12);
if(rand == 5)
{
SetPlayerCameraPos(playerid,2204.203857, -1192.829101, 1029.686279);
SetPlayerCameraLookAt(playerid,2204.066650, -1194.023681, 1029.513305);
}
else if(rand == 8)
{
SetPlayerCameraPos(playerid,2205.703857, -1194.029052, 1029.986328);
SetPlayerCameraLookAt(playerid,2203.466552, -1193.973632, 1029.513305);
}
else if(rand == 9)//kapidisari, oturarak sikerken
{
SetPlayerCameraPos(playerid,2210.591552, -1189.841796, 1030.527587);
SetPlayerCameraLookAt(playerid,2209.8275, -1190.473, 1030.395);
}
else if(rand == 11)
{
SetPlayerCameraPos(playerid,2204.003906, -1193.968994, 1030.786254);
SetPlayerCameraLookAt(playerid,2203.466552, -1193.973632, 1029.513305);
}
}
}
else //sex/bj complete
{
if(bitchid == 0)
{
DestroyActor(Bitch[bitchid][bID]);
Bitch[bitchid][bID ]= CreateActor(iBitchModel[bitchid],iBitchPos[bitchid][0],iBitchPos[bitchid][1],iBitchPos[bitchid][2],iBitchPos[bitchid][3]); //0.3.7 Rotatebug-fix
SetPlayerCameraPos(playerid,2203.701416,-1191.710449,1029.431396);
SetPlayerCameraLookAt(playerid,2204.286865,-1192.479858,1029.686767,CAMERA_MOVE);
SetPlayerPos(playerid,2205.2502,-1193.9957,1030.5249);
SetPlayerFacingAngle(playerid,85.7275);
}
else if(bitchid == 3)
{
DestroyActor(Bitch[bitchid][bID]);
Bitch[bitchid][bID] = CreateActor(iBitchModel[bitchid],iBitchPos[bitchid][0],iBitchPos[bitchid][1],iBitchPos[bitchid][2],iBitchPos[bitchid][3]); //0.3.7 Rotatebug-fix
SetPlayerCameraPos(playerid,2245.8842,-1166.4392,1030.9814);
SetPlayerCameraLookAt(playerid,2246.7126,-1166.0609,1030.5684);
SetPlayerPos(playerid,2248.7732,-1164.9709,1029.8754);
SetPlayerFacingAngle(playerid,185.7614);
}
else
{
SetPlayerCameraPos(playerid,iBitchPos[bitchid][9],iBitchPos[bitchid][10],iBitchPos[bitchid][11]);
SetPlayerCameraLookAt(playerid,iBitchPos[bitchid][12],iBitchPos[bitchid][13],iBitchPos[bitchid][14],CAMERA_MOVE);
}
PlayerTextDrawHide(playerid,Spieler[playerid][ExcBalken]);
PlayerTextDrawTextSize(playerid,Spieler[playerid][ExcBalken],624.0,2.0);
PlayerTextDrawShow(playerid,Spieler[playerid][ExcBalken]);
ApplyAnimation(playerid,iBitchAnimLib[bitchid][12],iBitchAnimLib[bitchid][13],4,0,0,0,1,0,1);
ApplyActorAnimation(Bitch[bitchid][bID],iBitchAnimLib[bitchid][10],iBitchAnimLib[bitchid][11],4,0,0,0,1,0);
Spieler[playerid][excMod] = 5;
}
}
else if(Spieler[playerid][excMod] == 5)
{
Spieler[playerid][excMod] = 6;
}
else if(Spieler[playerid][excMod] == 6)
{
Spieler[playerid][excMod] = 7;
}
else if(Spieler[playerid][excMod] == 7)
{
Spieler[playerid][excMod] = 8;
}
else if(Spieler[playerid][excMod] == 8)
{
Spieler[playerid][excMod] = 9;
if(bitchid != 1) { Spieler[playerid][excMod] = 11; }
}
else if(Spieler[playerid][excMod] == 9)
{
Spieler[playerid][excMod] = 10;
}
else if(Spieler[playerid][excMod] == 10)
{
Spieler[playerid][excMod] = 11;
}
else if(Spieler[playerid][excMod] == 11)
{
if(!Spieler[playerid][pFail])
{
//SetPlayerACHealth(playerid,Spieler[playerid][pUpgradeSkill][0]*40+50);
new Float:addhp;
if(phealth+iBitchHpArmor[bitchid][0]>100) { addhp=100; } else { addhp+=iBitchHpArmor[bitchid][0]; }
SetPlayerHealth(playerid,addhp);
GetPlayerArmour(playerid,phealth);
if(phealth+iBitchHpArmor[bitchid][1]>100) { addhp=100; } else { addhp+=iBitchHpArmor[bitchid][1]; }
SetPlayerArmour(playerid,addhp);
ClearAnimations(playerid);
ApplyAnimation(playerid,"MISC","Scratchballs_01",4,0,1,1,0,0);
if(bitchid==0)
{
SetPlayerPos(playerid,2208.2087,-1190.9595,1029.7969);
SetPlayerFacingAngle(playerid,292.6569);
}
TogglePlayerControllable(playerid,1);
SetCameraBehindPlayer(playerid);
}
PlayerTextDrawDestroy(playerid,Spieler[playerid][ExcBalken]);
TogglePlayerMovieMod(playerid,0);
Bitch[bitchid][bLabel] = Create3DTextLabel(iBitchLabel[bitchid],0xFF0000FF,iBitchPos[bitchid][0],iBitchPos[bitchid][1],iBitchPos[bitchid][2],5.0,0,1);
TextDrawHideForPlayer(playerid,gagnfuck);
TextDrawHideForPlayer(playerid,bshadow);
TextDrawHideForPlayer(playerid,exctext);
DestroyActor(Bitch[bitchid][bID]);
Bitch[bitchid][bID] = CreateActor(iBitchModel[bitchid],iBitchPos[bitchid][0],iBitchPos[bitchid][1],iBitchPos[bitchid][2],iBitchPos[bitchid][3]); //0.3.7 Rotatebug-fix
ApplyActorAnimation(Bitch[bitchid][bID],iBitchAnimLib[bitchid][0],iBitchAnimLib[bitchid][1],4,1,0,0,1,0);
KillTimer(Spieler[playerid][excTimer]);
Spieler[playerid][pFuckedBitch][bitchid] = 1;
Bitch[bitchid][bBusy] = -1;
Spieler[playerid][excMod] = 0;
Spieler[playerid][pFail] = 0;
Spieler[playerid][pBitch] = -1;
syncActors();
}
return 1;
}
//Taste F
if(newkeys == KEY_SECONDARY_ATTACK)
{
//PigPen Puffsystem
for(new i=0;i<BITCHES;i++)
{
if(IsPlayerInRangeOfPoint(playerid,3.0,iBitchPos[i][0],iBitchPos[i][1],iBitchPos[i][2]) && (Bitch[i][bBusy] == -1) && (!Spieler[playerid][pFuckedBitch][i]))
{
if(GetPlayerMoney(playerid) >= iBitchCost[i])
{
new biz = ReturnBizID(playerid),givemwst;
Spieler[playerid][pBitch] = i;
Bitch[i][bBusy] = playerid;
PlayerPlaySound(playerid,1150,0,0,0);
givemwst = floatround((iBitchCost[i]/100)*fsteuern[Mwst],floatround_ceil);
ACMoney(playerid,-iBitchCost[i]);
BizInfo[biz][biz_geldkasse] += floatround(iBitchCost[i]-givemwst);
fverwaltungen[16][Geld] += givemwst;
Delete3DTextLabel(Bitch[i][bLabel]);
TogglePlayerControllable(playerid,0);
SpamChat(playerid,0);// 0 = nur für einen spieler wird der chat kontrolliert 100 zeilen voll gespamt,bei 1 = für alle spieler
DestroyActor(Bitch[i][bID]);
if(i == 3)
{
Bitch[i][bID] = CreateActor(iBitchModel[i],2248.3857,-1166.1635,1030.6276,269.1816); //0.3.7 Rotatebug-fix
}
else
{
Bitch[i][bID] = CreateActor(iBitchModel[i],iBitchPos[i][0],iBitchPos[i][1],iBitchPos[i][2],iBitchPos[i][4]); //0.3.7 Rotatebug-fix
}
SetPlayerPos(playerid,iBitchPos[i][5],iBitchPos[i][6],iBitchPos[i][7]);
SetPlayerFacingAngle(playerid,iBitchPos[i][8]);
TogglePlayerMovieMod(playerid,1);
SetPlayerCameraPos(playerid,iBitchPos[i][9],iBitchPos[i][10],iBitchPos[i][11]);
SetPlayerCameraLookAt(playerid,iBitchPos[i][12],iBitchPos[i][13],iBitchPos[i][14],CAMERA_MOVE);
ApplyAnimation(playerid,iBitchAnimLib[i][4],iBitchAnimLib[i][5],4,0,0,0,1,0,1);
ApplyActorAnimation(Bitch[i][bID],iBitchAnimLib[i][2],iBitchAnimLib[i][3],4,0,0,0,1,0);
Spieler[playerid][ExcBalken] = CreatePlayerTextDraw(playerid,543.000000,110.000000,"_");
PlayerTextDrawUseBox(playerid,Spieler[playerid][ExcBalken],1);
PlayerTextDrawBoxColor(playerid,Spieler[playerid][ExcBalken],0xffffff99);
PlayerTextDrawTextSize(playerid,Spieler[playerid][ExcBalken],624.000000,2.000000);
PlayerTextDrawAlignment(playerid,Spieler[playerid][ExcBalken],0);
PlayerTextDrawBackgroundColor(playerid,Spieler[playerid][ExcBalken],0x000000ff);
PlayerTextDrawFont(playerid,Spieler[playerid][ExcBalken],3);
PlayerTextDrawLetterSize(playerid,Spieler[playerid][ExcBalken],1.000000,0.299999);
PlayerTextDrawColor(playerid,Spieler[playerid][ExcBalken],0xffffffff);
PlayerTextDrawSetOutline(playerid,Spieler[playerid][ExcBalken],1);
PlayerTextDrawSetProportional(playerid,Spieler[playerid][ExcBalken],1);
PlayerTextDrawSetShadow(playerid,Spieler[playerid][ExcBalken],1);
Spieler[playerid][excMod] = 0;
Spieler[playerid][excTimer] = SetTimerEx("Excitement",1000,1,"dd",playerid,i);
break;
}
}
}
return 1;
}
Alles anzeigen