Hallo Breadfish,
Ich habe einen /duty befehl gemacht für 5 Fraktionen ( Ja mehr habe ich nocht nicht -.- )
Fürs Lvpd,Army,Medic,Regierung und den Ballas nur leider geht dieser Befehl iw nur fürs LVPD aber wieso?
if(strcmp(cmdtext,"/duty",true)==0)
{
if(isPlayerInFrak(playerid,1))
{
if(IsPlayerInRangeOfPoint(playerid,1,2278.1812,2447.6255,3.5313))
{
SetPlayerColor(playerid,0x0015FFFF);
GivePlayerWeapon(playerid,24,250);
GivePlayerWeapon(playerid,29,250);
GivePlayerWeapon(playerid,3,1);
SetPlayerSkin(playerid,282);
SetPlayerArmour(playerid,100);
}
}
if(isPlayerInFrak(playerid,2))
{
if(IsPlayerInRangeOfPoint(playerid,1,2278.1812,2447.6255,3.5313))
{
SetPlayerColor(playerid,0x059A00FF);
GivePlayerWeapon(playerid,17,15);
GivePlayerWeapon(playerid,24,500);
GivePlayerWeapon(playerid,29,500);
GivePlayerWeapon(playerid,31,500);
GivePlayerWeapon(playerid,34,150);
SetPlayerSkin(playerid,287);
}
}
if(isPlayerInFrak(playerid,3))
{
if(IsPlayerInRangeOfPoint(playerid,1,2278.1812,2447.6255,3.5313))
{
SetPlayerColor(playerid,0xFF6E00FF);
GivePlayerWeapon(playerid,41,750);
SetPlayerSkin(playerid,275);
SetPlayerArmour(playerid,100);
}
}
if(isPlayerInFrak(playerid,4))
{
if(IsPlayerInRangeOfPoint(playerid,1,2278.1812,2447.6255,3.5313))
{
GivePlayerWeapon(playerid,24,250);
GivePlayerWeapon(playerid,41,750);
SetPlayerSkin(playerid,17);
SetPlayerArmour(playerid,100);
}
}
if(isPlayerInFrak(playerid,5))
{
if(IsPlayerInRangeOfPoint(playerid,1,2278.1812,2447.6255,3.5313))
{
GivePlayerWeapon(playerid,24,257);
GivePlayerWeapon(playerid,29,530);
SetPlayerSkin(playerid,104);
}
}
return 1;
}
Kann mir bitte einer helfen?
//Edit: Vielen Dank im vorraus
Mfg.