05.09.2013, 20:01
PHP код:
CMD:toma(playerid)
{
new Float:Pos[3];
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
for(new a; a < MAX_PLAYERS ; ++a)
{
if(IsPlayerInRangeOfPoint(a,5.0,Pos[0],Pos[1],Pos[2]) && PlayerCOP[a] == 1 && !IsPlayerInAnyVehicle(playerid))
{
new str[200],dialog_str[200];
format(str,sizeof(str),"Money : %d | Nivel Procurado : %d",GetPlayerMoney(playerid),GetPlayerWantedLevel(playerid));
strcat(dialog_str,str);
ShowPlayerDialog(playerid,1533,DIALOG_STYLE_MSGBOX,"Documentus :",dialog_str,"Oi","Sair");
return 1;
}else continue;//se der erro remova este "else continue;"
}
}