Hoffe das reicht
switch(GetPlayerWeapon(playerid))
{
case 0..21:
{
RemovePlayerAttachedObject(playerid, 1);
RemovePlayerAttachedObject(playerid, 2);
}
case 22:
{
SetPlayerAttachedObject(playerid, 1, 19082, 5, 0.140000, 0.019999, -0.090000, 0.000000, 7.000000, -3.000000, 1.000000, 1.000000, 1.000000);
SetPlayerAttachedObject(playerid, 2, 19082, 6, 0.100000, 0.029999, 0.090000, 0.000000, -9.000000, 3.000000, 1.000000, 1.000000, 1.000000);
}
case 23:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19082, 6, 0.100000, 0.029999, 0.079999, 0.000000, -10.000000, 4.000000, 1.000000, 1.000000, 1.000000);
}
case 24:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19082, 6, 0.139999, 0.019999, 0.079999, 0.000000, 3.000000, 0.000000, 1.000000, 1.000000, 1.000000);
}
case 25:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19082, 6, 0.400000, -0.000000, 0.110000, 0.000000, -9.000000, -6.000000, 1.000000, 1.000000, 1.000000);
}
case 26:
{
SetPlayerAttachedObject(playerid, 1, 19082, 5, 0.389999, 0.019999, -0.119999, 0.000000, 5.000000, 2.000000, 1.000000, 1.000000, 1.000000);
SetPlayerAttachedObject(playerid, 2, 19082, 6, 0.299999, 0.019999, 0.119999, 0.000000, -6.000000, -1.000000, 1.000000, 1.000000, 1.000000);
}
case 27:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19082, 6, 0.200000, 0.019999, 0.139999, 0.000000, -8.000000, -6.000000, 1.000000, 1.000000, 1.000000);
}
case 28:
{
SetPlayerAttachedObject(playerid, 1, 19082, 6, -0.000000, 0.019999, 0.080000, 0.000000, -4.000000, -5.000000, 1.000000, 1.000000, 1.000000);
SetPlayerAttachedObject(playerid, 2, 19082, 5, 0.089999, 0.029999, -0.080000, 0.000000, 3.000000, 6.000000, 1.000000, 1.000000, 1.000000);
}
case 29:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19082, 6, 0.200000, 0.000000, 0.159999, 0.000000, -6.000000, -6.000000, 1.000000, 1.000000, 1.000000);
}
case 30:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19082, 6, 0.200000, 0.010000, 0.089999, 0.000000, -3.000000, -5.000000, 1.000000, 1.000000, 1.000000);
}
case 31:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19082, 6, 0.200000, 0.010000, 0.089999, 0.000000, -3.000000, -5.000000, 1.000000, 1.000000, 1.000000);
}
case 32:
{
SetPlayerAttachedObject(playerid, 1, 19082, 6, 0.100000, 0.039999, 0.099999, 0.000000, -3.000000, -3.000000, 1.000000, 1.000000, 1.000000);
SetPlayerAttachedObject(playerid, 2, 19082, 5, 0.200000, 0.009999, -0.099999, 0.000000, 4.000000, 3.000000, 1.000000, 1.000000, 1.000000);
}
case 33:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19082, 6, 0.300000, 0.010000, 0.109999, 0.000000, -9.000000, -6.800000, 1.000000, 1.000000, 1.000000);
}
case 34:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19082, 6, -0.199999, 0.050000, 0.040000, 0.000000, -7.000000, -5.000000, 1.000000, 1.000000, 1.000000);
}
case 35:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19082, 6, -0.289999, 0.039999, 0.109999, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
}
case 36:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19082, 6, -0.400000, 0.039999, 0.139999, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
}
case 37:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19082, 6, 0.600000, 0.009999, 0.190000, 0.000000, -29.000000, -4.000000, 1.000000, 1.000000, 1.000000);
}
case 38:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19082, 6, 0.400000, 0.029999, -0.009999, 0.000000, -29.000000, -4.000000, 1.000000, 1.000000, 1.000000);
}
case 39..46:
{
RemovePlayerAttachedObject(playerid, 1);
RemovePlayerAttachedObject(playerid, 2);
}
}
}
else if(LASER[playerid] == 5)//Grun
{
switch(GetPlayerWeapon(playerid))
{
case 0..21:
{
RemovePlayerAttachedObject(playerid, 1);
RemovePlayerAttachedObject(playerid, 2);
}
case 22:
{
SetPlayerAttachedObject(playerid, 1, 19083, 5, 0.140000, 0.019999, -0.090000, 0.000000, 7.000000, -3.000000, 1.000000, 1.000000, 1.000000);
SetPlayerAttachedObject(playerid, 2, 19083, 6, 0.100000, 0.029999, 0.090000, 0.000000, -9.000000, 3.000000, 1.000000, 1.000000, 1.000000);
}
case 23:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19083, 6, 0.100000, 0.029999, 0.079999, 0.000000, -10.000000, 4.000000, 1.000000, 1.000000, 1.000000);
}
case 24:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19083, 6, 0.139999, 0.019999, 0.079999, 0.000000, 3.000000, 0.000000, 1.000000, 1.000000, 1.000000);
}
case 25:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19083, 6, 0.400000, -0.000000, 0.110000, 0.000000, -9.000000, -6.000000, 1.000000, 1.000000, 1.000000);
}
case 26:
{
SetPlayerAttachedObject(playerid, 1, 19083, 5, 0.389999, 0.019999, -0.119999, 0.000000, 5.000000, 2.000000, 1.000000, 1.000000, 1.000000);
SetPlayerAttachedObject(playerid, 2, 19083, 6, 0.299999, 0.019999, 0.119999, 0.000000, -6.000000, -1.000000, 1.000000, 1.000000, 1.000000);
}
case 27:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19083, 6, 0.200000, 0.019999, 0.139999, 0.000000, -8.000000, -6.000000, 1.000000, 1.000000, 1.000000);
}
case 28:
{
SetPlayerAttachedObject(playerid, 1, 19083, 6, -0.000000, 0.019999, 0.080000, 0.000000, -4.000000, -5.000000, 1.000000, 1.000000, 1.000000);
SetPlayerAttachedObject(playerid, 2, 19083, 5, 0.089999, 0.029999, -0.080000, 0.000000, 3.000000, 6.000000, 1.000000, 1.000000, 1.000000);
}
case 29:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19083, 6, 0.200000, 0.000000, 0.159999, 0.000000, -6.000000, -6.000000, 1.000000, 1.000000, 1.000000);
}
case 30:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19083, 6, 0.200000, 0.010000, 0.089999, 0.000000, -3.000000, -5.000000, 1.000000, 1.000000, 1.000000);
}
case 31:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19083, 6, 0.200000, 0.010000, 0.089999, 0.000000, -3.000000, -5.000000, 1.000000, 1.000000, 1.000000);
}
case 32:
{
SetPlayerAttachedObject(playerid, 1, 19083, 6, 0.100000, 0.039999, 0.099999, 0.000000, -3.000000, -3.000000, 1.000000, 1.000000, 1.000000);
SetPlayerAttachedObject(playerid, 2, 19083, 5, 0.200000, 0.009999, -0.099999, 0.000000, 4.000000, 3.000000, 1.000000, 1.000000, 1.000000);
}
case 33:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19083, 6, 0.300000, 0.010000, 0.109999, 0.000000, -9.000000, -6.800000, 1.000000, 1.000000, 1.000000);
}
case 34:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19083, 6, -0.199999, 0.050000, 0.040000, 0.000000, -7.000000, -5.000000, 1.000000, 1.000000, 1.000000);
}
case 35:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19083, 6, -0.289999, 0.039999, 0.109999, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
}
case 36:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19083, 6, -0.400000, 0.039999, 0.139999, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
}
case 37:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19083, 6, 0.600000, 0.009999, 0.190000, 0.000000, -29.000000, -4.000000, 1.000000, 1.000000, 1.000000);
}
case 38:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19083, 6, 0.400000, 0.029999, -0.009999, 0.000000, -29.000000, -4.000000, 1.000000, 1.000000, 1.000000);
}
case 39..46:
{
RemovePlayerAttachedObject(playerid, 1);
RemovePlayerAttachedObject(playerid, 2);
}
}
}
else if(LASER[playerid] == 6)//Gelb
{
switch(GetPlayerWeapon(playerid))
{
case 0..21:
{
RemovePlayerAttachedObject(playerid, 1);
RemovePlayerAttachedObject(playerid, 2);
}
case 22:
{
SetPlayerAttachedObject(playerid, 1, 19084, 5, 0.140000, 0.019999, -0.090000, 0.000000, 7.000000, -3.000000, 1.000000, 1.000000, 1.000000);
SetPlayerAttachedObject(playerid, 2, 19084, 6, 0.100000, 0.029999, 0.090000, 0.000000, -9.000000, 3.000000, 1.000000, 1.000000, 1.000000);
}
case 23:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19084, 6, 0.100000, 0.029999, 0.079999, 0.000000, -10.000000, 4.000000, 1.000000, 1.000000, 1.000000);
}
case 24:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19084, 6, 0.139999, 0.019999, 0.079999, 0.000000, 3.000000, 0.000000, 1.000000, 1.000000, 1.000000);
}
case 25:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19084, 6, 0.400000, -0.000000, 0.110000, 0.000000, -9.000000, -6.000000, 1.000000, 1.000000, 1.000000);
}
case 26:
{
SetPlayerAttachedObject(playerid, 1, 19084, 5, 0.389999, 0.019999, -0.119999, 0.000000, 5.000000, 2.000000, 1.000000, 1.000000, 1.000000);
SetPlayerAttachedObject(playerid, 2, 19084, 6, 0.299999, 0.019999, 0.119999, 0.000000, -6.000000, -1.000000, 1.000000, 1.000000, 1.000000);
}
case 27:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19084, 6, 0.200000, 0.019999, 0.139999, 0.000000, -8.000000, -6.000000, 1.000000, 1.000000, 1.000000);
}
case 28:
{
SetPlayerAttachedObject(playerid, 1, 19084, 6, -0.000000, 0.019999, 0.080000, 0.000000, -4.000000, -5.000000, 1.000000, 1.000000, 1.000000);
SetPlayerAttachedObject(playerid, 2, 19084, 5, 0.089999, 0.029999, -0.080000, 0.000000, 3.000000, 6.000000, 1.000000, 1.000000, 1.000000);
}
case 29:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19084, 6, 0.200000, 0.000000, 0.159999, 0.000000, -6.000000, -6.000000, 1.000000, 1.000000, 1.000000);
}
case 30:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19084, 6, 0.200000, 0.010000, 0.089999, 0.000000, -3.000000, -5.000000, 1.000000, 1.000000, 1.000000);
}
case 31:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19084, 6, 0.200000, 0.010000, 0.089999, 0.000000, -3.000000, -5.000000, 1.000000, 1.000000, 1.000000);
}
case 32:
{
SetPlayerAttachedObject(playerid, 1, 19084, 6, 0.100000, 0.039999, 0.099999, 0.000000, -3.000000, -3.000000, 1.000000, 1.000000, 1.000000);
SetPlayerAttachedObject(playerid, 2, 19084, 5, 0.200000, 0.009999, -0.099999, 0.000000, 4.000000, 3.000000, 1.000000, 1.000000, 1.000000);
}
case 33:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19084, 6, 0.300000, 0.010000, 0.109999, 0.000000, -9.000000, -6.800000, 1.000000, 1.000000, 1.000000);
}
case 34:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19084, 6, -0.199999, 0.050000, 0.040000, 0.000000, -7.000000, -5.000000, 1.000000, 1.000000, 1.000000);
}
case 35:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19084, 6, -0.289999, 0.039999, 0.109999, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
}
case 36:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19084, 6, -0.400000, 0.039999, 0.139999, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
}
case 37:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19084, 6, 0.600000, 0.009999, 0.190000, 0.000000, -29.000000, -4.000000, 1.000000, 1.000000, 1.000000);
}
case 38:
{
RemovePlayerAttachedObject(playerid, 2);
SetPlayerAttachedObject(playerid, 1, 19084, 6, 0.400000, 0.029999, -0.009999, 0.000000, -29.000000, -4.000000, 1.000000, 1.000000, 1.000000);
}
case 39..46:
{
RemovePlayerAttachedObject(playerid, 1);
RemovePlayerAttachedObject(playerid, 2);
}
}
}
}
return 1;
}