SA-MP Forums Archive
[Duvida] - 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: [Duvida] (/showthread.php?tid=536273)



[Duvida] - SatanMessenger - 08.09.2014

Eu coloquei um anti drive by no servidor й alguns cara ficam dando /suicidar pra eles serem presos tem como tirar?

CODE:

Код:
if(reason == 49){
switch(GetVehicleModel( GetPlayerVehicleID(killerid))){case 565,445,444,442,439,438,437,436,434,431,426,420,451,410,412,506,475,443,509,481,510,400,401,402,403,404,405,406,407,408,409,411:{
new assss6[128];format(assss6, sizeof(assss6), "%s foi preso por 1 minuto. (Motivo: Drive by)", killer_name);
SendClientMessageToAll(COLOUR_AVISO, assss6);
CallRemoteFunction("GivePlayerCash", "ii", killerid, -1000);
SetPlayerScore(killerid,GetPlayerScore(killerid)-2);
ScoreNaSessao[killerid]--;
CallRemoteFunction("LJail","ii",killerid,60000);
SendClientMessage(killerid, AVISO, "");
SendClientMessage(killerid, AVISO, "TEMPO DE PRISГO: 1 MINUTO");
SendClientMessage(killerid, AVISO, "Se continuar fazendo DB poderб ser kickado.");
SendClientMessage(killerid, AVISO, "");}}



Re: [Duvida] - FallweN - 08.09.2014

Tira o comando /suicidar. '-' Eu acho um comando desnecessбrio.


Re: [Duvida] - DiiMeNoR - 08.09.2014

Ou cria uma restriзгo que quando estiver usando o veiculo algo do tipo ele nгo poder usar o comando.


Re: [Duvida] - Spectral - 08.09.2014

Quote:
Originally Posted by DiiMeNoR
Посмотреть сообщение
Ou cria uma restriзгo que quando estiver usando o veiculo algo do tipo ele nгo poder usar o comando.
Dentro do comando /Suicidar, antes das funзхes do comando:
pawn Код:
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo pode usar este comando dentro de um veнculo!");