[Tutorial] Anti Drive-By
#5

Quote:
Originally Posted by Feio
Посмотреть сообщение
tem como eu colocar para o acusado ir para a prisгo ao matar a vitima ?
Com certeza, seria mais ou menos isso.

pawn Код:
public OnPlayerDeath(playerid, killerid, reason) {
    if (IsPlayerInAnyVehicle(killerid)) {
        new string[100];
        new acusado[MAX_PLAYER_NAME];
        new vitima[MAX_PLAYER_NAME];
        GetPlayerName(killerid, acusado, MAX_PLAYER_NAME);
        GetPlayerName(playerid, vitima, MAX_PLAYER_NAME);
        format(string, sizeof(string), "[Anti Drive-By]: %s cometeu Drive-by em %s e serб punido por um administrador.", acusado, vitima);
        SendClientMessageToAll(0xE60000FF, string);
        MandarPrisao(playerid);
    }
    return 1;
}

forward MandarPrisao(playerid);
public MandarPrisao(playerid) {
    print("O jogador foi preso");
    return 1;
}
Reply


Messages In This Thread
Anti Drive-By - by Pablo098 - 27.11.2014, 22:51
Re : Anti Drive-By - by Feio - 27.11.2014, 23:07
Re: Re : Anti Drive-By - by Dayvison_ - 27.11.2014, 23:13
Re: Anti Drive-By - by Learning - 27.11.2014, 23:30
Re: Re : Anti Drive-By - by ipsLuan - 27.11.2014, 23:32
Re: Re : Anti Drive-By - by Pablo098 - 27.11.2014, 23:34
Re: Anti Drive-By - by Gii - 28.11.2014, 00:25
Re: Anti Drive-By - by Pablo098 - 28.11.2014, 00:26
Re: Anti Drive-By - by Pablo098 - 28.11.2014, 00:30
Re: Anti Drive-By - by PedexM - 28.11.2014, 00:30

Forum Jump:


Users browsing this thread: 1 Guest(s)