Wie Frage ich hier ab ob ein Member der LCN oder der Yaku oder der LVR in der nähe es um dann die 20k zu bekommen?
Code
ocmd:moneybagdeliver(playerid,params[])
{
for(new i; i < MAX_PLAYERS; i++)
{
if(!IsPlayerMember(playerid,4) || IsPlayerMember(playerid,5) || IsPlayerMember(playerid,6)) return SendClientMessage(playerid,GRAU,"Du bist in keiner Mafia!");
{
if(!IsPlayerRank(playerid,6)) return SendClientMessage(playerid,GRAU,"Du bist nicht Rank 6!");
{
if(!IsPlayerInVehicle(playerid,8)) return SendClientMessage(playerid,GRAU,"Du bist nicht im Bankrob Auto!");
{
if(!IsPlayerMember(i,3) || IsPlayerLeader(i,4) ||IsPlayerMember(i,4) || IsPlayerLeader(i,5) || IsPlayerMember(i,6) || IsPlayerLeader(i,6))
{
if(IsPlayerInRangeOfPoint(i,3,2208.4888,1285.4384,10.8203))
{
GetPlayerMoney(i);
GivePlayerMoney(i,20000);
SendClientMessage(i,GELB,"Bankrob erfolgreich!");
if(IsPlayerMember(playerid,4))
{
SetPlayerColor(playerid,LCN);
}
if(IsPlayerMember(playerid,5))
{
SetPlayerColor(playerid,LVR);
}
if(IsPlayerMember(playerid,6))
{
SetPlayerColor(playerid,YAKU);
}
SetPlayerWantedLevel(playerid,0);
}
else
{
SendClientMessage(playerid,GRAU,"Du bist nicht in der nähe des Delivers!");
return 1;
}
}
}
}
}
}
return 1;
}
Alles anzeigen