24.08.2016, 00:40
Eu Nгo estou conseguindo pra por o comando em uma POS NESSA XYZ AQUI 330.7844,129.2914,1007.9657 , jб tentei de varias maneiras porem nгo consigo
OBS: SOU NOVATO!
PHP код:
CMD:procurados(playerid, params[])
{
if(!PlayerToPoint(9.5,playerid,330.7844,129.2914,1007.9657))
if(IsACopFCar(playerid))
{
MEGAString[0] = EOS;
new string[128];
strcat(MEGAString,"Nick\tID\tOrganizaзгo\tLevel de Procura\n");
foreach(Player, i)
{
if(GetPlayerWantedLevelEx(i) != 0 && !IsACop(i) && GetPlayerOrg(i) != 12)
{
if(GetPlayerWantedLevelEx(i) >= 10)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof string, "%s\t%d\t%s\t{FF6347}%d\n", giveplayer,i,AbrevORG(i),WantedPoints[i]);
strcat(MEGAString,string);
}
else
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof string, "%s\t%d\t%s\t%d\n", giveplayer,i,AbrevORG(i),WantedPoints[i]);
strcat(MEGAString,string);
}
}
}
ShowPlayerDialog(playerid, 9937, 5, "Suspeitos Atuais",MEGAString,"Ok","Sair");
}
else if(GetPlayerOrg(playerid) == 3)
{
MEGAString[0] = EOS;
new string[128];
strcat(MEGAString,"Nick\tID\tOrganizaзгo\tLevel de Procura\n");
foreach(Player, i)
{
if(GetPlayerWantedLevelEx(i) != 0 && !IsACop(i))
{
if(GetPlayerOrg(i) == 12)
{
if(GetPlayerWantedLevelEx(i) >= 10)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof string, "%s\t%d\t%s\t{FF6347}%d\n", giveplayer,i,AbrevORG(i),WantedPoints[i]);
strcat(MEGAString,string);
}
else
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof string, "%s\t%d\t%s\t%d\n", giveplayer,i,AbrevORG(i),WantedPoints[i]);
strcat(MEGAString,string);
}
}
}
}
ShowPlayerDialog(playerid, 9937, 5, "Suspeitos Atuais",MEGAString,"Ok","Sair");
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo e um oficial!");
}
return 1;
}