27.11.2014, 23:32
Quote:
|
tem como eu colocar para o acusado ir para a prisгo ao matar a vitima ?
|
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;
}


