Animações
Configurações de Nick
Morrer ao tentar roubar carro
Código PHP:
//animações by Levi.M
CMD:renderse(playerid)return SetPlayerSpecialAction(playerid, 10);
CMD:ligar(playerid)return SetPlayerSpecialAction(playerid, 11);
CMD:desligar(playerid)return SetPlayerSpecialAction(playerid, 13);
CMD:bebado(playerid)return ApplyAnimation(playerid, "PED", "WALK_DRUNK", 4.0, 1, 1, 1, 1, 0);
CMD:bomba(playerid)return ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
CMD:apontar(playerid)return ApplyAnimation(playerid, "ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
CMD:merda(playerid)return ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
CMD:mascara(playerid)return ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0);
CMD:roubar(playerid)return ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
CMD:cruzarbraco(playerid)return ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
CMD:deitar(playerid)return ApplyAnimation(playerid, "BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
CMD:abaixar(playerid)return ApplyAnimation(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0);
CMD:vomitar(playerid)return ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
CMD:comer(playerid)return ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
CMD:rap(playerid)return ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
CMD:passaramao(playerid)return ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0);
CMD:cobrar(playerid)return ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
CMD:overdose(playerid)return ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
CMD:fumar(playerid)return ApplyAnimation(playerid, "SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
CMD:sentar(playerid)return ApplyAnimation(playerid, "BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0);
CMD:conversar(playerid)return ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.0, 0, 0, 0, 0, 0);
CMD:fodase(playerid)return ApplyAnimation(playerid, "PED", "fucku", 4.0, 0, 0, 0, 0, 0);
CMD:taichi(playerid)return ApplyAnimation(playerid, "PARK", "Tai_Chi_Loop", 4.0, 1, 0, 0, 0, 0);
CMD:observar(playerid)return ApplyAnimation(playerid, "BAR", "dnk_stndF_loop", 4.0, 1, 0, 0, 0, 0);
CMD:animes(playerid)
{
SendClientMessage(playerid, -1, "Lista de Animes :");
SendClientMessage(playerid, -1, "/renderse /ligar /desligar /bebado /bomba /apontar /merda /mascararse");
SendClientMessage(playerid, -1, "/roubar /cruzarb /deitar /abaixar /vomitar /comer /rap /passaramao");
SendClientMessage(playerid, -1, "/cobrar /overdose /fumar //observar /sentar /conversar /fodase /taichi");
return 1;
}
Configurações de Nick
Código PHP:
CMD:nickoff(playerid)
{
for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, false);
GameTextForPlayer(playerid, "~W~Nicks Desativos ~R~off", 5000, 5);
return 1;
}
CMD:nickoon(playerid)
{
for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, true);
GameTextForPlayer(playerid, "~W~Nicks Ativos ~R~", 5000, 5);
return 1;
}
Morrer ao tentar roubar carro
Código PHP:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
SendClientMessage(playerid, -1, "Ao tentar roubar um veículo, morrerá!");
if(!ispassenger && IsVehicleOccupied(vehicleid)) SetPlayerHealth(playerid, 0.0);
return 1;
}
//No fim do gamemode adicione:
stock IsVehicleOccupied(vehicleid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
if(IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == PLAYER_STATE_DRIVER)
return 1;
return 0;
}
Discord:https://discord.gg/Vg5HMqgdP9