SA-MP Forums Archive
[Pedido] alterar nivel de procurado - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] alterar nivel de procurado (/showthread.php?tid=404917)



alterar nivel de procurado - Equipe - 04.01.2013

Entгo, Eu tentei criar um comando Para meu servidor RPG, o "/su" a funзгo dele й dar nнvel de procurado ao ID que foi selecionado por exemplo "/su 3 Desacato" Isso faria com que o nнvel de procurado do jogador aumentasse em 1

Por favor ajudem ;/


Re: alterar nivel de procurado - JonathanFeitosa - 04.01.2013

https://sampwiki.blast.hk/wiki/SetPlayerWantedLevel


Re: alterar nivel de procurado - TugaBR - 04.01.2013

Use
PHP код:
SetPlayerWantedLevel(playerid6); 
Troque o 6 pelo nъmero de estrelas que vocк deseja.

Ficaria assim:
PHP код:
if(strcmp(cmdtext"/su1"true) == 0)
{
    
SetPlayerWantedLevel(playerid1);
    
SendClientMessage(playerid0xFF0000FF"Desacato");
    return 
1;

PHP код:
if(strcmp(cmdtext"/su2"true) == 0)
{
    
SetPlayerWantedLevel(playerid2);
    
SendClientMessage(playerid0xFF0000FF"Roubo");
    return 
1;

PHP код:
if(strcmp(cmdtext"/su3"true) == 0)
{
    
SetPlayerWantedLevel(playerid3);
    
SendClientMessage(playerid0xFF0000FF"Tentativa de homicнdio");
    return 
1;