26.03.2014, 12:54
pelo que eu entendi faz assim
PHP код:
case ClassMafia 0:
{
if(APlayerData[playerid][StatsMafiaJobs] == 500)
{
new string[128];
format(string,sizeof(string),Texto_PPC_Logro1,ReturnPlayerName(playerid),"Mafia ages");
SendClientMessageToAll(0x00FF00FF,string);
APlayerData[playerid][PlayerMoney] += 500000;
}
if(APlayerData[playerid][StatsMafiaStolen] == 500)
{
new string[128];
format(string,sizeof(string),Texto_PPC_Logro1,ReturnPlayerName(playerid),"Mafia stolen");
SendClientMessageToAll(0x00FF00FF,string);
APlayerData[playerid][PlayerMoney] += 500000;
}
return 1;
}
case ClassMafia 1:
{
if(APlayerData[playerid][StatsMafiaJobs] == 500)
{
new string[128];
format(string,sizeof(string),Texto_PPC_Logro1,ReturnPlayerName(playerid),"Mafia ages");
SendClientMessageToAll(0x00FF00FF,string);
APlayerData[playerid][PlayerMoney] += 500000;
}
if(APlayerData[playerid][StatsMafiaStolen] == 500)
{
new string[128];
format(string,sizeof(string),Texto_PPC_Logro1,ReturnPlayerName(playerid),"Mafia stolen");
SendClientMessageToAll(0x00FF00FF,string);
APlayerData[playerid][PlayerMoney] += 500000;
}
return 1;
}