[Pedido] sistema de bater cartгo
#1

Olб pessoal do fуrum eu queria um sistema de bater cartгo para policiais ou pelo menos a base para eu fazer espero que vocкs me ajudem eu agradeзo desde jб. lembrando que eu uso a PPC_Trucking
Reply
#2

----
Reply
#3

Quote:
Originally Posted by PiLoTo
Посмотреть сообщение
tem skype ADC : thiago.oliveira723
Adicionei la aceita la
Reply
#4

No OnPlayerSpawn tem assim:

PHP код:
        case ClassPolice// Police class
        
{
            
format(missiontextsizeof(missiontext), Police_NoJobText); // Preset the missiontext
            
SetPlayerColor(playeridColorClassPolice); // Set the playercolor (chatcolor for the player and color on the map)
            // Start the PlayerCheckTimer to scan for wanted players (be sure the timer has been destroyed first)
            
KillTimer(APlayerData[playerid][PlayerCheckTimer]);
            
APlayerData[playerid][PlayerCheckTimer] = SetTimerEx("Police_CheckWantedPlayers"1000true"i"playerid);
            
// Check if the police player can get weapons
            
if (PoliceGetsWeapons == true)
            {
                
// Give up to 12 weapons to the player
                
for (new i12i++)
                    
GivePlayerWeapon(playeridAPoliceWeapons[i], PoliceWeaponsAmmo);
            }
        } 
Remove o

PHP код:
            KillTimer(APlayerData[playerid][PlayerCheckTimer]);
            
APlayerData[playerid][PlayerCheckTimer] = SetTimerEx("Police_CheckWantedPlayers"1000true"i"playerid); 
Faz o interior para bater cartгo, uma dialog, e dentro das dialogs coloca este cod.

PHP код:
            KillTimer(APlayerData[playerid][PlayerCheckTimer]);
            
APlayerData[playerid][PlayerCheckTimer] = SetTimerEx("Police_CheckWantedPlayers"1000true"i"playerid); 
Caso queira ir bater o cartгo para nгo prender nem multar players, use

PHP код:
                switch (APlayerData[playerid][PlayerClass])
                {
                    case 
ClassPolicePolice_EndJob(playerid);
                } 
Mais alguma coisa, skype: joao.monteiro.2012
Jб informei o mais complicado agora faзa o sismples.
Criar Dialogs, ect.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)