[Ajuda] /su
#6

Acredito que seja isso nгo testei
PHP код:
if(strcmp(cmd"/suspeito"true) == || strcmp(cmd"/su"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
             if(!
IsACop(playerid))
            {
                
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo й um policial!");
                return 
1;
            }
            if(
OnDuty[playerid] != 1)
            {
                
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo Bateu o cartгo!");
                return 
1;
            }
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOLOR_GRAD2"USE: (/su)speito [id] [Descriзгo do Crime]");
                return 
1;
            }
            
giveplayerid ReturnUser(tmp);
            if (
IsACop(playerid))
            {
                if(
IsPlayerConnected(giveplayerid))
                {
                     if(
IsACop(giveplayerid))
                    {
                        
SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo pode dar su em Policiais!");
                        return 
1;
                    }
                    if(
PlayerInfo[playerid][pAdmin] >= || PlayerInfo[playerid][pHelper] >= 1)
                    {
                        
SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo pode dar su em um administrador ou helper");
                        return 
1;
                    }
                    if(
giveplayerid != INVALID_PLAYER_ID)
                    {
                            
GetPlayerName(giveplayeridgiveplayersizeof(giveplayer));
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            new 
length strlen(cmdtext);
                            while ((
idx length) && (cmdtext[idx] <= ' '))
                            {
                                
idx++;
                            }
                            new 
offset idx;
                            new 
result[64];
                            while ((
idx length) && ((idx offset) < (sizeof(result) - 1)))
                            {
                                
result[idx offset] = cmdtext[idx];
                                
idx++;
                            }
                            
result[idx offset] = EOS;
                            if(!
strlen(result))
                            {
                                
SendClientMessage(playeridCOLOR_GRAD2"USE: (/su)speito [id] [Descriзгo do Crime]");
                                return 
1;
                            }
                            
SetPlayerCriminal(giveplayerid,playeridresult);
                            return 
1;
                    }
                }
                else
                {
                        
SendClientMessage(playeridCOLOR_GRAD1"  Esse jogador nгo estб conectado.");
                        return 
1;
                }
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GRAD2"   Vocк nгo й um Policial !");
            }
        }
        return 
1;
 } 
Reply


Messages In This Thread
[Ajuda] /su - by Senhor_Azul - 09.05.2012, 03:33
Re: [Ajuda] /su - by ViniBorn - 09.05.2012, 03:40
Re: [Ajuda] /su - by BreakDriFT - 09.05.2012, 03:43
Re: [Ajuda] /su - by Senhor_Azul - 09.05.2012, 03:43
Re: [Ajuda] /su - by ViniBorn - 09.05.2012, 04:11
Re : [Ajuda] /su - by Lohran - 09.05.2012, 04:26

Forum Jump:


Users browsing this thread: 1 Guest(s)