Hallo Leute,
Es gibt in meinem Script leider kein gehalt für die ganzen fraktionen
ich möchte das sie gehalt bekommen und habe mal so angefangen
if (PlayerInfo[playerid][pLeader] == 1)//LS POLICIJA SPAWN
{
PlayerInfo[playerid][pGehalt] = 10000;
return 1;
}
if (PlayerInfo[playerid][pLeader] == 2)//KriminalPolizei-Spawn
{
PlayerInfo[playerid][pGehalt] = 10000;
return 1;
}
if (PlayerInfo[playerid][pLeader] == 3)//HITMAN AGENCY SPAWN
{
PlayerInfo[playerid][pGehalt] = 10000;
return 1;
}
if (PlayerInfo[playerid][pLeader] == 4)//LS CNN
{
PlayerInfo[playerid][pGehalt] = 10000;
return 1;
}
if (PlayerInfo[playerid][pLeader] == 5)//Grove Street
{
PlayerInfo[playerid][pGehalt] = 10000;
return 1;
}
if (PlayerInfo[playerid][pLeader] == 6)//red dragonz
{
PlayerInfo[playerid][pGehalt] = 10000;
return 1;
}
if (PlayerInfo[playerid][pLeader] == 7) //LCN
{
PlayerInfo[playerid][pGehalt] = 10000;
return 1;
}
if (PlayerInfo[playerid][pLeader] == //Loos Crips
{
PlayerInfo[playerid][pGehalt] = 10000;
return 1;
}
if (PlayerInfo[playerid][pLeader] == 9) //Russenmafi
{
PlayerInfo[playerid][pGehalt] = 10000;
return 1;
}
if (PlayerInfo[playerid][pLeader] == 10) //oamt
{
PlayerInfo[playerid][pGehalt] = 10000;
return 1;
}
if (PlayerInfo[playerid][pMember] == 1)//LS POLICIJA SPAWN
{
PlayerInfo[playerid][pGehalt] = 5000;
return 1;
}
if (PlayerInfo[playerid][pMember] == 2)//KriminalPolizei-Spawn
{
PlayerInfo[playerid][pGehalt] = 5000;
return 1;
}
if (PlayerInfo[playerid][pMember] == 3)//HITMAN AGENCY SPAWN
{
PlayerInfo[playerid][pGehalt] = 5000;
return 1;
}
if (PlayerInfo[playerid][pMember] == 4)//LS CNN
{
PlayerInfo[playerid][pGehalt] = 5000;
return 1;
}
if (PlayerInfo[playerid][pMember] == 5)//Grove Street
{
PlayerInfo[playerid][pGehalt] = 5000;
return 1;
}
if (PlayerInfo[playerid][pMember] == 6)//red dragonz
{
PlayerInfo[playerid][pGehalt] = 5000;
return 1;
}
if (PlayerInfo[playerid][pMember] == 7) //LCN
{
PlayerInfo[playerid][pGehalt] = 5000;
return 1;
}
if (PlayerInfo[playerid][pMember] == //Loos Crips
{
PlayerInfo[playerid][pGehalt] = 5000;
return 1;
}
if (PlayerInfo[playerid][pMember] == 9) //Russenmafi
{
PlayerInfo[playerid][pGehalt] = 5000;
return 1;
}
if (PlayerInfo[playerid][pMember] == 10) //oamt
{
PlayerInfo[playerid][pGehalt] = 5000;
return 1;
}
Kann mir jetzt wer helfen ? am besten einfach nen timer der jede minute diesen befehl ausführt damit das gehalt der fraktionen auf 10000 ider 5000 je nach dem halt gesetzt werden oder auch eine bessere möglichkeit sagen das es sich auch noch vermehren kann also wenn man nebenbei nen job macht oder so ? wäre echt nett