23.07.2011, 20:22
Quote:
prefiru u mel dб banned gerals qero ve fazer db зaporra ai
public osplayersisconnected pawn Код:
|
Vocк quer banir todo mundo de uma vez ?
prefiru u mel dб banned gerals qero ve fazer db зaporra ai
public osplayersisconnected pawn Код:
|
new Str[128];
new pName[MAX_PLAYER_NAME];
GetPlayerName(killerid, pName, MAX_PLAYER_NAME);
format(Str, 128, "[AVISO] %s cometeu um Drive-by", pName);
SendClientMessage(playerid,0x0000FFAA,Str);
new Float:Xp, Yp, Zp;
public OnPlayerSpawn(playerid)
{
GetPlayerPos(playerid, Xp, Yp, Zp);
return 0;
}
public OnPlayerDeath(playerid, killerid, reason)
{
new vitima[MAX_PLAYER_NAME], acusado[MAX_PLAYER_NAME], string[115];
if(IsPlayerInAnyVehicle(killerid))
{
if(GetVehicleModel(GetPlayerVehicleID(killerid)) != 425 || GetVehicleModel(GetPlayerVehicleID(killerid)) != 520)
{
SendClientMessage(killerid, COLOR_RED,"Vos hice drive-by, no hagas mas eso o va ser expulsado.");
SetPlayerPos(playerid, Xp, Yp, Zp);
SetPlayerArmour(playerid, 20);
SendClientMessage(playerid, COLOR_WHITE, "Gaсaste un chaleco(cantidad: 20) y fuiste restaurado. Salvate!");
SendClientMessage(playerid, COLOR_RED, "El responsavel por el drive-by fue castigado.");
format(string, sizeof(string), "%s fue encarcelado por hacer drive-by en %s [tiempo: 2 minutos]", acusado, vitima);
SendClientMessageToAll(COLOR_RED, string);
SetTimer(killerid, "SerPreso", 500, false);
}
}
forward SerPreso(playerid, killerid);
public Serpreso(playerid, killerid)
{
SetPlayerPos(killerid, X, Y, Z);
SetTimer(playerid, "SerSolto", 120000, false);
return 0;
}
forward SerSolto(playerid);
public SerSolto(playerid)
{
SpawnPlayer(payerid);
return 0;
}