[Ajuda] Cod - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Cod (
/showthread.php?tid=343835)
[Ajuda] Cod -
Luciano* - 19.05.2012
Como faзo pro player ir preso por 1min. ao fazer Drive-By?
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 serб preso e advertido por um ADMIN! ",name2,killerid,nome);
SendClientMessageToAll(0xFF5604AA,stradb);
}
}
return true;
}
Re: [Ajuda] Cod -
zbt - 19.05.2012
pawn Код:
//quando fazer o DB
SetPlayerPos(killerid, x, y, z); //posiзгo da cadeia
SetPlayerInterior(killerid, interiorid);//interior.
SetTimerEx("Tempo", 60000, false, "i", killerid);
//final
forward Tempo(playerid);
public Tempo(playerid) {
SetPlayerPos(playerid, x, y, z); //posiзгo quando ele for solto.
SetPlayerInterior(playerid, interiorid); //interior.
SendClientMessage(playerid, -1, "Livre");
return true;
}
Re: [Ajuda] Cod -
CidadeNovaRP - 19.05.2012
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;
}
Base:
MegaLife - GF Edit /q