[Ajuda] Anti - RPG
#5

Quote:
Originally Posted by SpikeCompiler
Посмотреть сообщение
PHP код:
public OnPlayerSpawn(playerid)
{
    if(
Algemado[playerid] == true)
    {
        
GivePlayerGrana(playerid,-100000);
        
preso[playerid] = 1;
        
SetPlayerPos(playerid, 223.5335,110.3779,999.0156);
        
SetPlayerInterior( playerid, 10 );
        new 
string[228];
        
format(string, sizeof(string),"| ANTI - RPG |  O Jogador: %s (%d), Saiu Algemado e foi preso e multado automaticamente!", PlayerName(playerid), playerid);
        
SendClientMessageToAll(0xFF0000AA, string);
        
SendClientMessage(playerid, 0xFF0000AA,"| ANTI - RPG | Foram descontados -100000 da sua conta! ( Motivo: Anti Rpg ).");
        
SendClientMessage(playerid, 0xFF0000AA,"| ANTI - RPG | Isso que acontece sair Algemado, agora fica preso babaca!");
        return 
1;
    }
    return 
1;
} 
Lembrando que, vocк estб salvando o 'algemado' em variavel, no caso se o jogador sair do servidor, quando ele voltar, vai acontecer nada, salve no seu sistema de salvamento.
A puniзгo vai ser aplicada tambйm para quando o player cair do servidor.
Estude a funзгo 'reason' em OnPlayerDisconnect e aplique no seu cуdigo para ele ficar completo.
Reply


Messages In This Thread
Anti - RPG - by DeusGrego - 30.12.2017, 07:43
Re: Anti - RPG - by Benner - 30.12.2017, 08:01
Re: Anti - RPG - by Sn0wk - 30.12.2017, 08:29
Re: Anti - RPG - by SpikeCompiler - 30.12.2017, 11:24
Re: Anti - RPG - by Ermanhaut - 30.12.2017, 15:31

Forum Jump:


Users browsing this thread: