14.05.2010, 13:12
ANTI DRIVER-BY
Agora Final GM
AQUI ALGUMA FUNЗХES EM PORTUGUES
pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
new weap= GetPlayerWeapon(killerid);
if(GetPlayerState(killerid) == 2 || GetPlayerState(killerid) == 3)
{
if(weap == 32 || weap == 28 || weap == 29)
{
GetPlayerName(killerid, Nome, sizeof(Nome));
formato(string, sizeof(string), "-OpenDKNGOSTOSO-: %s foi preso por 2 Min pelo Admin GOSTOSO| Motivo: Driver-By",Nome);
EnviarMensagemaTodos(VERMELHO, string);
SetPlayerInterior(killerid, 0);
SetPlayerPos(killerid,268.5777,1857.9351,9.8133);
SetarTempo("PRESODB",120000,false);
}
}
}
pawn Code:
public PRESODB(killerid)
{
SpawnPlayer(killerid);
}
pawn Code:
#include <a_samp>
//*****************PORTUGUES FUNЗOES**********************************
#define ATIVAR true
#define DESATIVA false
#define PegarArmaPlayer GetPlayerWeapon
#define EnviarMensagemaTodos SendClientMessageToAll
#define Banir Ban
#define PegarAcaoDoPlayer GetPlayerSpecialAction
#define PegarNome GetPlayerName
#define formato format
#define Publica public
#define Retornar return
#define AoPlayerConectar OnPlayerConnect
#define AoPlayerDesconectar OnPlayerDisconnect
#define Motivo reason
#define Nome name
#define Estado_Player_Espiando PLAYER_STATE_SPECTATING
#define PegarEstadoPlayer GetPlayerState
#define PlayerAdministrador IsPlayerAdmin
#define novo new
#define AFrente forward
#define AoLigarServerExe OnGameModeInit
#define AoPlayerSpawnar OnPlayerSpawn
#define AoPlayerMorrer OnPlayerDeath
#define AoPlayerDigitar OnPlayerText
#define ComandosaoPlayer OnPlayerCommandText
#define AoPlayerEntrarCarro OnPlayerEnterVehicle
#define AoPlayerSairCarro OnPlayerExitVehicle
#define EstadoPlayerMudar OnPlayerStateChange
#define TeclarAlgo OnPlayerKeyStateChange
#define AtualizarPlayer OnPlayerUpdate
#define AoFecharSampExe OnGameModeExit
#define SetarTempo SetTimer
#define Passageiro ispassenger
#define CarroID vehicleid
#define NovoEstado newstate
#define VelhoEstado oldstate
#define NovasTeclas newkeys
#define VelhasTeclas oldkeys
//*****************PORTUGUES FUNЗOES**********************************