06.07.2014, 06:14
(
Последний раз редактировалось Lorruan; 08.04.2018 в 00:40.
)
Daniel <3
G A M E M O D E PARA ESTUDO/MINI BASE
PHP код:
//----------------------------------------------------------
//
// Nгo retire os creditos
// Feito por Lorruan
//
//----------------------------------------------------------
//includes
#include < a_samp >
//cores
#define AMARELO 0xFFFF00FF
#define AZUL 0x058AFFFF
#define ROSA 0xFF05CDFF
#define VERDE 0x33AA33AA
#define BRANCO 0xFFFFFFFF
#define VERMELHO 0xDF0016FF
#define PRETO 0x000000FF
#define CINZA 0x878787FF
#define AZULCLARO 0x03F2FFFF
#define VERDECLARO 0x03FF35FF
#define ROXO 0x7D03FFFF6
#define LARANJA 0xFF7403FF
#define COR_GROOVE 0x00800096
#define COR_BALLAS 0xFF00CDFF
#define COR_DELETE 0xFFFF00AA
#define Violeta 0xFFFF00AA
//define dialogs
//nes/forward
forward SendMensagens();
forward SendMSG();
new Text:Textdraw0;
new Text:Textdraw1;
new jogadoresOnline = 0;
//==============================================================================
//CORES
//==============================================================================
new Cores[] =
{
0x5EB7E3AA,
0xCD6CF6F6,
0x685000F6
};
//==============================================================================
//MENSAGEM RANDOMICAS
//==============================================================================
new Mensagens[3][256] =
{
"Digite /Comandos Para Ver os comandos do servidor.",
"[Duvidas? Viu Xiter? Chame um administrador",
"Digite /ajuda para mais informaзхes"
};
//==============================================================================
//NOME SERVIDOR
//==============================================================================
//==============================================================================
//==============================================================================
main()
{
print("============================ = Server Carregado = ==============================");
print("=========================== = Criado por Loruan = =============================");
print("============================ = Server Carregado = ==============================");
}
public OnPlayerConnect(playerid)
{
jogadoresOnline++;
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
SendClientMessage(playerid , AZUL," ");
SendClientMessage(playerid , AZUL," ");
SendClientMessage(playerid , AZUL," ");
SendClientMessage(playerid , AZUL," ");
SendClientMessage(playerid , AZUL," ");
SendClientMessage(playerid , AZUL," ");
SendClientMessage(playerid , AZUL," ");
SendClientMessage(playerid , AZUL," ");
SendClientMessage(playerid , AZUL," ");
SendClientMessage(playerid , AZUL," ");
SendClientMessage(playerid, 0x63E01BFF, "============================ = Bem Vindo = ================================");
SendClientMessage(playerid, -1, " ");
SendClientMessage(playerid, -1, "Bem vindo, Brazil x Favela x Sinistra quem й o melhor? Escolha sua Team e Divirta-se");
SendClientMessage(playerid, -1, "");
SendClientMessage(playerid, 0x63E01BFF, "============================ = Bem Vindo = ================================");
new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "[ INFO SERVER ] O Player %s entrou", pname);
SendClientMessageToAll(BRANCO, string);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
jogadoresOnline--;
new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
switch(reason)
{
case 0: format(string, sizeof(string), "%s saiu do servidor (Crash/Conexгo)", pname);
case 1: format(string, sizeof(string), "%s saiu do servidor. (Conta Prуpia)", pname);
case 2: format(string, sizeof(string), "%s fez merda e saiu do servidor. (Kickado/Banido)", pname);
}
SendClientMessageToAll(BRANCO, string);
return 1;
}
public OnGameModeInit()
{
CreateObject(3749, 2902.3, -1623.6399, 15.7, 0, 0, 347);
CreateObject(3749, 2886.6001, -1620.0111, 15.7, 0, 0, 346.998);
CreateObject(3749, 2868.3, -1615.8, 15.7, 0, 0, 346.998);
CreateObject(3749, 2916.8999, -1578.5, 15.7, 0, 0, 346.998);
CreateObject(3749, 2897.8999, -1574.12, 15.7, 0, 0, 346.998);
CreateObject(3749, 2883.5, -1570.9, 15.7, 0, 0, 346.998);
CreateObject(3749, 2462.3, -1659.1, 18.2, 0, 0, 90);
CreateObject(3749, 1533.1, -1643.3, 18.2, 0, 0, 0);
CreateObject(3749, 1529.8, -1615.9, 18.2, 0, 0, 0);
CreateObject(3749, 1524.4, -1630.2, 18.4, 0, 0, 90);
CreateObject(3749, 2186.3999, -1221.3, 28.7, 0, 0, 90);
CreateObject(3749, 2258.8999, -1220.6, 28.7, 0, 0, 90);
UsePlayerPedAnims();
AddPlayerClass(105,2517.8335,-1676.8845,14.2800,62.7035,0,0,0,0,0,0); // SKIN GROVE
AddPlayerClass(106,2517.8335,-1676.8845,14.2800,62.7035,0,0,0,0,0,0); // SKIN GROVE
AddPlayerClass(107,2517.8335,-1676.8845,14.2800,62.7035,0,0,0,0,0,0); // SKIN GROVE
AddPlayerClass(102,2216.3721,-1211.6790,23.9632,172.6466,0,0,0,0,0,0); // BALLAS
AddPlayerClass(103,2216.3721,-1211.6790,23.9632,172.6466,0,0,0,0,0,0); // BALLAS
AddPlayerClass(104,2216.3721,-1211.6790,23.9632,172.6466,0,0,0,0,0,0); // BALLAS
AddPlayerClass(108,2917.2263,-1599.4910,14.9453,267.1283,0,0,0,0,0,0); // VAGOS
AddPlayerClass(109,2917.2263,-1599.4910,14.9453,267.1283,0,0,0,0,0,0); // VAGOS
AddPlayerClass(110,2917.2263,-1599.4910,14.9453,267.1283,0,0,0,0,0,0); // VAGOS
AddPlayerClass(285,1544.6368,-1631.8610,13.3828,269.2735,0,0,0,0,0,0); // policias
AddPlayerClass(284,1544.6368,-1631.8610,13.3828,269.2735,0,0,0,0,0,0); // policias
AddPlayerClass(286,1544.6368,-1631.8610,13.3828,269.2735,0,0,0,0,0,0); // policias
AddPlayerClass(292,1375.4188,-863.0284,41.0037,222.9273,0,0,0,0,0,0); // ADM
AddPlayerClass(181,1375.4188,-863.0284,41.0037,222.9273,0,0,0,0,0,0); // ADM
AddPlayerClass(217,1375.4188,-863.0284,41.0037,222.9273,0,0,0,0,0,0); // ADM
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, Textdraw0);
TextDrawShowForPlayer(i, Textdraw1);
}
}
return 1;
}
public OnGameModeExit()
{
return 1;
}
//==============================================================================
//==============================================================================
public OnPlayerSpawn(playerid)
{
//==============================================================================
//COR DOS NICK
//==============================================================================
SendClientMessage(playerid, -1, "Digite /comandos para saber os cmds do servidor");
SendClientMessage(playerid, -1, "Nosso servidor esta na versгo beta iremos por mais coisa na v2");
if(GetPlayerSkin(playerid) == 105) SetPlayerColor(playerid, VERDE);
if(GetPlayerSkin(playerid) == 106) SetPlayerColor(playerid, VERDE);
if(GetPlayerSkin(playerid) == 107) SetPlayerColor(playerid, VERDE);
if(GetPlayerSkin(playerid) == 102) SetPlayerColor(playerid, ROXO);
if(GetPlayerSkin(playerid) == 103) SetPlayerColor(playerid, ROXO);
if(GetPlayerSkin(playerid) == 104) SetPlayerColor(playerid, ROXO);
if(GetPlayerSkin(playerid) == 109) SetPlayerColor(playerid, AMARELO);
if(GetPlayerSkin(playerid) == 108) SetPlayerColor(playerid, AMARELO);
if(GetPlayerSkin(playerid) == 110) SetPlayerColor(playerid, AMARELO);
if(GetPlayerSkin(playerid) == 284) SetPlayerColor(playerid, AZUL);
if(GetPlayerSkin(playerid) == 285) SetPlayerColor(playerid, AZUL);
if(GetPlayerSkin(playerid) == 286) SetPlayerColor(playerid, AZUL);
//==============================================================================
//==============================================================================
if(GetPlayerSkin(playerid) == 105) //troca o 0 pelo ID da skin que queres
{
SendClientMessage(playerid, VERDE," Voce esta jogando na gangue Groove");
}
//==============================================================================
//==============================================================================
//==============================================================================
//==============================================================================
if(GetPlayerSkin(playerid) == 106) //troca o 0 pelo ID da skin que queres
{
SendClientMessage(playerid, VERDE," Voce esta jogando na gangue Groove");
}
//==============================================================================
//==============================================================================
//==============================================================================
//==============================================================================
if(GetPlayerSkin(playerid) == 107) //troca o 0 pelo ID da skin que queres
{
SendClientMessage(playerid, VERDE," Voce esta jogando na gangue Groove");
}
//==============================================================================
//==============================================================================
if(GetPlayerSkin(playerid) == 102) //troca o 0 pelo ID da skin que queres
{
SendClientMessage(playerid, ROXO," Voce esta jogando na gangue Ballas");
}
//==============================================================================
//==============================================================================
if(GetPlayerSkin(playerid) == 103) //troca o 0 pelo ID da skin que queres
{
SendClientMessage(playerid, ROXO," Voce esta jogando na gangue Ballas");
}
//==============================================================================
//==============================================================================
if(GetPlayerSkin(playerid) == 104) //troca o 0 pelo ID da skin que queres
{
SendClientMessage(playerid, ROXO," Voce esta jogando na gangue Ballas");
}
//==============================================================================
//==============================================================================
if(GetPlayerSkin(playerid) == 110) //troca o 0 pelo ID da skin que queres
{
SendClientMessage(playerid, AMARELO," Voce esta jogando na gangue Vagos");
}
//==============================================================================
//==============================================================================
if(GetPlayerSkin(playerid) == 109) //troca o 0 pelo ID da skin que queres
{
SendClientMessage(playerid, AMARELO," Voce esta jogando na gangue Vagos");
}
//==============================================================================
//==============================================================================
if(GetPlayerSkin(playerid) == 108) //troca o 0 pelo ID da skin que queres
{
SendClientMessage(playerid, AMARELO," Voce esta jogando na gangue Vagos");
}
//==============================================================================
//==============================================================================
if(GetPlayerSkin(playerid) == 286) //troca o 0 pelo ID da skin que queres
{
SendClientMessage(playerid, AZUL," Voce esta Na organizaзгo policial");
}
//==============================================================================
//==============================================================================
if(GetPlayerSkin(playerid) == 284) //troca o 0 pelo ID da skin que queres
{
SendClientMessage(playerid, AZUL," Voce esta Na organizaзгo policial");
}
//==============================================================================
//==============================================================================
if(GetPlayerSkin(playerid) == 285) //troca o 0 pelo ID da skin que queres
{
SendClientMessage(playerid, AZUL," Voce esta Na organizaзгo policial");
}
GivePlayerWeapon(playerid ,29 , 800);
GivePlayerWeapon(playerid ,30 , 8000);
GivePlayerWeapon(playerid ,24 , 800);
GivePlayerWeapon(playerid ,26 , 80);
GivePlayerWeapon(playerid ,5 , 80);
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
switch(GetPlayerSkin(playerid))
{
case 292,181,271:
{
if(!IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, -1,"Skins bloqueados. sгo exclusivamente para admins");
return 0;
}
}
}
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
TextDrawHideForPlayer(playerid, Textdraw0);
SetPlayerPos(playerid, 1026.3941, -2181.1584, 40.8012);
SetPlayerInterior(playerid, 0);
SetPlayerFacingAngle(playerid, 1.6982);
SetPlayerCameraPos(playerid, 1022.8941, -2177.1584, 42.3012);
SetPlayerCameraLookAt(playerid, 1027.0232, -2179.7837, 40.4760);
ApplyAnimation(playerid,"DANCING","DAN_LOOP_A",4.0,1,0,0,0,-1);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
new string[128];
//10Mil ao matar
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
SendDeathMessage(killerid, playerid, reason);
GameTextForPlayer(playerid, "~r~Se Fodeu", 8000, 5);
GivePlayerMoney(killerid, 10000);
format(string, sizeof(string), "[INFO] - Voce Ganhou ao Matar um jogador Esta aqui seu dinheiro $%d.", GetPlayerMoney(killerid));
SendClientMessage(killerid, VERMELHO, string);
return 1; // ESQUECEU AQUI EM
}
public SendMensagens()
{
new string[265];
new random1 = random(sizeof(Mensagens));
new random2 = random(sizeof(Cores));
format(string, sizeof(string), "%s", Mensagens[random1]);
SendClientMessageToAll(Cores[random2],string);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
new string[256];
if (strcmp("/online", cmdtext, true, 10) == 0)
{
format(string, sizeof(string), "Tem %d jogadores online", jogadoresOnline);
SendClientMessageToAll(VERMELHO, string);
return 1;
}
if (strcmp("/tunar", cmdtext, true, 10) == 0)
{
{
{
if(!IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid,VERMELHO,"[INFO] Vocк nгo consegue tunar seu prуprio corpo.");
}
new var5 = 0;
var5 = GetPlayerVehicleID(playerid);
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 562)
{
AddVehicleComponent(var5, 1046);
AddVehicleComponent(var5, 1171);
AddVehicleComponent(var5, 1149);
AddVehicleComponent(var5, 1035);
AddVehicleComponent(var5, 1147);
AddVehicleComponent(var5, 1036);
AddVehicleComponent(var5, 1040);
ChangeVehiclePaintjob(var5, 4);
ChangeVehicleColor(var5, 6, 6);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1097);
AddVehicleComponent(var5, 1087);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 560)
{
AddVehicleComponent(var5, 1028);
AddVehicleComponent(var5, 1169);
AddVehicleComponent(var5, 1141);
AddVehicleComponent(var5, 1032);
AddVehicleComponent(var5, 1138);
AddVehicleComponent(var5, 1026);
AddVehicleComponent(var5, 1027);
ChangeVehiclePaintjob(var5, 0);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1097);
AddVehicleComponent(var5, 1087);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 565)
{
AddVehicleComponent(var5, 1046);
AddVehicleComponent(var5, 1153);
AddVehicleComponent(var5, 1150);
AddVehicleComponent(var5, 1054);
AddVehicleComponent(var5, 1049);
AddVehicleComponent(var5, 1047);
AddVehicleComponent(var5, 1051);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1097);
AddVehicleComponent(var5, 1087);
ChangeVehiclePaintjob(var5, 4);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 559)
{
AddVehicleComponent(var5, 1065);
AddVehicleComponent(var5, 1160);
AddVehicleComponent(var5, 1159);
AddVehicleComponent(var5, 1067);
AddVehicleComponent(var5, 1162);
AddVehicleComponent(var5, 1069);
AddVehicleComponent(var5, 1071);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1097);
AddVehicleComponent(var5, 1087);
ChangeVehiclePaintjob(var5, 4);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 561)
{
AddVehicleComponent(var5, 1064);
AddVehicleComponent(var5, 1155);
AddVehicleComponent(var5, 1154);
AddVehicleComponent(var5, 1055);
AddVehicleComponent(var5, 1158);
AddVehicleComponent(var5, 1056);
AddVehicleComponent(var5, 1062);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1097);
AddVehicleComponent(var5, 1087);
ChangeVehiclePaintjob(var5, 4);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 558)
{
AddVehicleComponent(var5, 1089);
AddVehicleComponent(var5, 1166);
AddVehicleComponent(var5, 1168);
AddVehicleComponent(var5, 1088);
AddVehicleComponent(var5, 1164);
AddVehicleComponent(var5, 1090);
AddVehicleComponent(var5, 1094);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1097);
AddVehicleComponent(var5, 1087);
ChangeVehiclePaintjob(var5, 4);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 575)
{
AddVehicleComponent(var5, 1044);
AddVehicleComponent(var5, 1174);
AddVehicleComponent(var5, 1176);
AddVehicleComponent(var5, 1042);
AddVehicleComponent(var5, 1099);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1097);
AddVehicleComponent(var5, 1087);
ChangeVehiclePaintjob(var5, 4);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 534)
{
AddVehicleComponent(var5, 1126);
AddVehicleComponent(var5, 1179);
AddVehicleComponent(var5, 1180);
AddVehicleComponent(var5, 1122);
AddVehicleComponent(var5, 1101);
AddVehicleComponent(var5, 1125);
AddVehicleComponent(var5, 1123);
AddVehicleComponent(var5, 1100);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1097);
AddVehicleComponent(var5, 1087);
ChangeVehiclePaintjob(var5, 4);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 536)
{
AddVehicleComponent(var5, 1104);
AddVehicleComponent(var5, 1182);
AddVehicleComponent(var5, 1184);
AddVehicleComponent(var5, 1108);
AddVehicleComponent(var5, 1107);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1097);
AddVehicleComponent(var5, 1087);
ChangeVehiclePaintjob(var5, 4);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 567)
{
AddVehicleComponent(var5, 1129);
AddVehicleComponent(var5, 1189);
AddVehicleComponent(var5, 1187);
AddVehicleComponent(var5, 1102);
AddVehicleComponent(var5, 1133);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1097);
AddVehicleComponent(var5, 1087);
ChangeVehiclePaintjob(var5, 4);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 420)
{
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1087);
AddVehicleComponent(var5, 1097);
AddVehicleComponent(var5, 1139);
AddVehicleComponent(var5, 1147);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 400)
{
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1087);
AddVehicleComponent(var5, 1018);
AddVehicleComponent(var5, 1013);
AddVehicleComponent(var5, 1097);
AddVehicleComponent(var5, 1086);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 444)
{
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1097);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 556)
{
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1097);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 557)
{
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1097);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 401)
{
AddVehicleComponent(var5, 1086);
AddVehicleComponent(var5, 1139);
AddVehicleComponent(var5, 1097);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1087);
AddVehicleComponent(var5, 1012);
AddVehicleComponent(var5, 1013);
AddVehicleComponent(var5, 1042);
AddVehicleComponent(var5, 1043);
AddVehicleComponent(var5, 1018);
AddVehicleComponent(var5, 1006);
AddVehicleComponent(var5, 1007);
AddVehicleComponent(var5, 1017);
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 576)
{
ChangeVehiclePaintjob(var5, 0);
AddVehicleComponent(var5, 1191);
AddVehicleComponent(var5, 1193);
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1018);
AddVehicleComponent(var5, 1097);
AddVehicleComponent(var5, 1087);
AddVehicleComponent(var5, 1134);
AddVehicleComponent(var5, 1137);
}
else
{
AddVehicleComponent(var5, 1010);
AddVehicleComponent(var5, 1097);
AddVehicleComponent(var5, 1087);
}
}
}
return 1;
}
if(strcmp(cmdtext, "/jetpack", true) == 0){
if(!IsPlayerInAnyVehicle(playerid)) {
SetPlayerSpecialAction(playerid, 2);
} else {
SendClientMessage(playerid, VERMELHO, "Vocк nгo pode usar um jetpack dentro de um veнculo.");}
return 1;
}
if(!strcmp(cmdtext, "/elegy", true))
{
if(IsPlayerInAnyVehicle(playerid))
{
return SendClientMessage(playerid, VERMELHO, "Voce ja esta em um veiculo");
}
new Float:var0 = 0, Float:var1 = 0, Float:var2 = 0, Float:var3 = 0;
GetPlayerPos(playerid, var0, var1, var2);
GetPlayerFacingAngle(playerid, var3);
CreateVehicle(562, var0 + 1, var1 + 1, var2, var3, 1, 1, 10000);//..
return 1;
}
if(!strcmp(cmdtext, "/comandos", true))
{
SendClientMessage(playerid, 0x63E01BFF, "============================ = Lista de Comandos = ================================");
SendClientMessage(playerid, BRANCO, "Para ver quantos players online digite /online");
SendClientMessage(playerid, BRANCO, "Para ver a lista de veiculos digite /veiculos");
SendClientMessage(playerid, BRANCO, "Para anuciar que esta doidгo digite /tocarterror");
SendClientMessage(playerid, BRANCO, "Para tunar seu carro digite /tunar");
SendClientMessage(playerid, BRANCO, "Para se matar digite /kill");
SendClientMessage(playerid, BRANCO, "Para localizar alguem digite /gps");
SendClientMessage(playerid, BRANCO, "Para ir no parkour digite /parkour");
SendClientMessage(playerid, BRANCO, "Para Ver os criadores digite /creditos");
SendClientMessage(playerid, BRANCO, "Para Ver os teleportes digite /teles");
SendClientMessage(playerid, 0x63E01BFF, "============================ = Lista Veiculos = ================================");
return 1;
}
if(!strcmp(cmdtext, "/teles", true))
{
SendClientMessage(playerid, 0x63E01BFF, "============================ = CREDITOS = ================================");
SendClientMessage(playerid, BRANCO, "/cratera /ls /lv /dp /golfe /hospital /ammu");
SendClientMessage(playerid, 0x63E01BFF, "============================ = CREDITOS = ================================");
return 1;
}
if(!strcmp(cmdtext ,"/creditos", true))
{
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Creditos - [BFS] - Brazil Favela Sinistra", "Servidor criado totalmente do 0 por [BFS]_Lorruan", "Ok", "Cancelar");
return 1;
}
if(!strcmp(cmdtext, "/veiculos", true))
{
SendClientMessage(playerid, 0x63E01BFF, "============================ = Lista Veiculos = ================================");
SendClientMessage(playerid, BRANCO, "Para Pegar uma , moto digite /nrg");
SendClientMessage(playerid, BRANCO, "Para Pegar um , infernus digite /infernus");
SendClientMessage(playerid, BRANCO, "Para Pegar um , elegy digite /elegy");
SendClientMessage(playerid, 0x63E01BFF, "============================ = Lista Veiculos = ================================");
return 1;
}
if(!strcmp(cmdtext, "/nrg", true))
{
if(IsPlayerInAnyVehicle(playerid))
{
return SendClientMessage(playerid, VERMELHO, "Voce ja esta em um veiculo");
}
new Float:var0 = 0, Float:var1 = 0, Float:var2 = 0, Float:var3 = 0;
GetPlayerPos(playerid, var0, var1, var2);
GetPlayerFacingAngle(playerid, var3);
CreateVehicle(522, var0 + 1, var1 + 1, var2, var3, 1, 1, 10000);//..
return 1;
}
if(!strcmp(cmdtext, "/infernus", true))
{
if(IsPlayerInAnyVehicle(playerid))
{
return SendClientMessage(playerid, VERMELHO, "Voce ja esta em um veiculo");
}
new Float:var0 = 0, Float:var1 = 0, Float:var2 = 0, Float:var3 = 0;
GetPlayerPos(playerid, var0, var1, var2);
GetPlayerFacingAngle(playerid, var3);
CreateVehicle(411, var0 + 1, var1 + 1, var2, var3, 1, 1, 10000);//..
return 1;
}
if(strcmp(cmdtext,"/tocarterror",true)==0)
{
new player[128];
new tmp[128];
GivePlayerWeapon(playerid,16,999);
GetPlayerName(playerid,player,sizeof(player));
format(tmp,sizeof(tmp),"Cuidado: O Player %s (%d) Ficou Doidгo Corrгo.",player,playerid);
SendClientMessageToAll(VERMELHO,tmp);
return 1;
}
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, -999999);
}
return 1;
}