[Ajuda] /Handsup
#1

Bloquear esse comando pra Cop , como faзo ? quando algum Cop digitar /handsup ,aparecer a mensagem dizendo que ele й COP .


pawn Код:
if (strcmp(cmd, "/handsup", true) == 0)
    {
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "O Suspeito(a) %s digitou /handsup !.", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
        return true;
    }
Reply
#2

manda a variбvel de Cops
Reply
#3

pawn Код:
if (strcmp(cmd, "/handsup", true) == 0)
    {
    if (IsACop(playerid))
         return SendClientMessage ( playerid, -1, "|ERRO| Vocк nгo й um policial!" ) ;
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "O Suspeito(a) %s digitou /handsup !.", sendername);
        ProxDetector(30.0, playerid, string,               COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
    }
  return true;
}
Tenta aн :]

@ Identaзгo tensa :/
Reply
#4

pawn Код:
if(IsACop(playerid))
Reply
#5

PHP код:
if (strcmp(cmd"/handsup"true) == 0)
{
    if ( 
IsACop (playerid  ) )
         return 
SendClientMessage playerid, -1"[ ERRO ]: Vocк й policial nгo pode usar este comando" ) ;
         
    
GetPlayerName playeridsendernamesizeof sendername ) ) ;
       
    
format stringsizeof ( string ), "O Suspeito(a) %s digitou /handsup !."sendername ) ;
    
    
ProxDetector 30.0playeridstringCOLOR_PURPLECOLOR_PURPLECOLOR_PURPLECOLOR_PURPLECOLOR_PURPLE ) ;
    
    
SetPlayerSpecialAction playeridSPECIAL_ACTION_HANDSUP ) ;
    return 
true;

Reply
#6

PHP код:
if (strcmp(cmd"/handsup"true) == 0)
    {
        if(
IsACop(playerid)) {
        
SendClientMessage(playerid, -1,"Vocк й um COP");
        }
        else if {
        
GetPlayerName(playeridsendernamesizeof(sendername));
        
format(stringsizeof(string), "O Suspeito(a) %s digitou /handsup !."sendername);
        
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
        }
        return 
true;
    } 
Reply
#7

if(IsACop(playerid)
Reply
#8

Obrigado a todos , + Rep pra vocкs .
Reply
#9

quer ganhar dinheiro na interneti enta aiii

http://www.recargaecapital.com.br/?aff=willocnarf

muitooo bom
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)