[Ajuda] Ajuda Bater Cartao
#1

Ajuda bater cartao
tem como alguem aew fazer um negocio assim
/batercartao e bater cartao(ja ta) dai aparecer uma tabela escrito assim
Escolha o Id da Skin que vocк vai patrulhar,trabalhar

PHP код:
    if(strcmp(cmd"/batercartao"true) == 0)
    {
        if(
PlayerInfo[playerid][pJailed] != 0)
        {
               
SendClientMessage(playerid,COLOR_YELLOW," Vocк nгo pode batercartao na cadeia!");
            return 
true;
        }
        if(
IsPlayerConnected(playerid))
        {
            
GetPlayerName(playeridsendernamesizeof(sendername));
            if(
IsACop(playerid))
            {
                if (
PlayerToPoint(2playerid,255.2998,77.5604,1003.6406) || PlayerToPoint(2,playerid,-1616.1294,681.1594,7.1875) || PlayerToPoint(2,playerid,230.1107,165.2237,1003.0234) || PlayerToPoint(2playerid,240.7396,112.9709,1003.2188) || PlayerToPoint(2playerid,255.2998,77.5604,1003.6406) ||  PlayerToPoint(2playerid,1385.3987,1372.7174,10.9407)
                || 
PlayerToPoint(2playerid,326.4911,307.0710,999.1484) || PlayerInfo[playerid][pLocal] != 255)
                {
                    if(
OnDuty[playerid]==0)
                    {
                        
format(stringsizeof(string), "Oficial %s bateu o cartгo e estб em serviзo,digite /servico policia."sendername);
                        
OOCNews(COLOR_DBLUE,string);
                        
//SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);
                        
SetPlayerArmour(playerid100);
                        
SetPlayerHealth(playerid100);
                        
OnPlayerCommandText(playerid,"/equipar");
                        
OnDuty[playerid] = 1;
                        
EmpregoDuty[playerid] = 2;
                        
Copsronda += 1;
                    }
                    else if(
OnDuty[playerid]==1)
                    {
                        
format(stringsizeof(string), "Oficial %s estб de folga e nгo vai mais receber seus chamados."sendername);
                        
OOCNews(COLOR_DBLUE,string);
                        
//RemovePlayerAttachedObject(playerid,3);
                        
OnDuty[playerid] = 0;
                        
EmpregoDuty[playerid] = 0;
                        
Copsronda -= 1;
                    }
                }
            
//    else
                
{
                    
SendClientMessage(playeridCOLOR_GRAD2"");
                    return 
true;
                }
            }
            }
        return 
true;
    } 
Por favor ? Obrigado quem ajudar!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)