19.05.2012, 01:57
pawn Код:
if(GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
{
switch(GetVehicleModel(GetPlayerVehicleID(killerid)))
{
case 425,520,432,447: //ID dos veiculos
return false;
default:
{
new nome[MAX_PLAYER_NAME],name2[128],stradb[80];
GetPlayerName(killerid,name2,sizeof(name2));
GetPlayerName(playerid, nome, MAX_PLAYER_NAME);
format(stradb, sizeof(stradb), "%s[ID:%d] Cometeu drive-by em %s e foi preso! ",name2,killerid,nome);
SendClientMessageToAll(0xFF5604AA,stradb);
GameTextForPlayer(giveplayerid, "~b~Bem Vindo ao ~n~~r~Carandiru", 5000, 3);
ResetPlayerWeaponsEx(giveplayerid);
WantedPoints[giveplayerid] = 0;
SetPlayerWantedLevel(giveplayerid, 0);
PlayerInfo[giveplayerid][pJailed] = 2;
PlayerInfo[giveplayerid][pJailTime] = 60; //Troca o 60 pelo tempo preso
SetPlayerPos(giveplayerid, 107.2300,1920.6311,18.5208);
SetPlayerWorldBounds(giveplayerid, 337.5694,101.5826,1940.9759,1798.7453);
}
}
return true;
}
MegaLife - GF Edit /q