[Pedido] sistema de bater cartгo
#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


Messages In This Thread
sistema de bater cartгo - by DarthVeider - 05.08.2014, 22:19
Re: sistema de bater cartгo - by PiLoTo - 05.08.2014, 23:01
Re: sistema de bater cartгo - by DarthVeider - 06.08.2014, 00:08
Re: sistema de bater cartгo - by JoaoMonteiro - 06.08.2014, 00:16

Forum Jump:


Users browsing this thread: 1 Guest(s)