[Ajuda] Teleporte
#1

bom gente , gostaria de ajuda no meu comando /minigun , ex: eu digio /minigun vo la d boa e mato os cara , mas nao ganho score , gostaria de ganhar score ao matar no /minigun , vou deixar o cod abaixo .
Код:
if(strcmp(cmd, "/mg", true) == 0 || strcmp(cmd, "/minigun", true) == 0 || strcmp(cmd, "/mg3", true) == 0) {
if(!IsPlayerSpawned(playerid)){return 1;}
if(EventoProibirTele == true && NoEvento[playerid] == 1 && EventoAtivo == 1) return SendClientMessage(playerid, COLOUR_ERRO, StringTable[3]);
if(LifeBaixo(playerid)) return SendClientMessage(playerid, COLOUR_ERRO, StringTable[6]);
if(GetPlayerInterior(playerid) != 0) return SendClientMessage(playerid,COLOUR_ERRO,StringTable[7]);
//if(IsPlayerInAnyVehicle(playerid)) {return SendClientMessage(playerid, COLOUR_ERRO, "[ERRO]: Vocк deve sair de seu veнculo.");}
if(ChecarVeiculosProibidosParaTele(playerid) == 1){return SendClientMessage(playerid, COLOUR_ERRO, StringTable[1]);}
if(Arena[playerid] == 1) return SendClientMessage(playerid, COLOUR_ERRO, StringTable[9]);
if(CallRemoteFunction("LocalInvalidoParaTeleporte","i",playerid) && GetPlayerInterior(playerid) > 0) return SendClientMessage(playerid, COLOUR_ERRO, StringTable[2]);
if(ChecarAntiFlood(playerid)) return AntiFloodMsg(playerid);
RemoverTodosAttachsObj(playerid);
ResetPlayerWeapons(playerid);
Arena[playerid] = 1;
ArenaTipo[playerid] = 4;
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid, 13);
new rand = random(sizeof(CombatePos));
SetPlayerPos(playerid, CombatePos[rand][0], CombatePos[rand][1], CombatePos[rand][2]);
SetCameraBehindPlayer(playerid);
SetPlayerFacingAngle(playerid,CombatePos[rand][3]);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
GivePlayerWeapon(playerid, 38, 99999);
GameTextForPlayer(playerid,"~r~COMBATE DE MINIGUN!", 3000, 5);
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s foi para o combate de MINIGUN. Quem vai?( /MG )", pname);
SendClientMessageToAll(COLOUR_TELEPORTE, string);
SendClientMessage(playerid, COLOUR_DICA, "");
SendClientMessage(playerid, COLOUR_DICA, "VOCК ESTБ EM UM COMBATE, O OBJETIVO Й MATAR TODOS QUE");
SendClientMessage(playerid, COLOUR_DICA, "VIREM AQUI, LEMBRANDO QUE, AO MATAR, SEU COLETE E SAUDE");
SendClientMessage(playerid, COLOUR_DICA, "SERГO RECUPERADOS AUTOMATICAMENTE, ENTГO MATE!");
SendClientMessage(playerid, COLOUR_DICA, "");
SetCameraBehindPlayer(playerid);
ProgramarAntiFlood(playerid);
return 1;}
vlw pessoal !
Reply


Messages In This Thread
Teleporte - by gefe - 05.08.2013, 23:36
Respuesta: Teleporte - by ViniKuliveguisky - 05.08.2013, 23:41
Re: Teleporte - by P1c4550 - 05.08.2013, 23:43
Respuesta: Teleporte - by gefe - 05.08.2013, 23:43
Respuesta: Re: Teleporte - by gefe - 05.08.2013, 23:46
Re: Teleporte - by darkxdll - 05.08.2013, 23:50
Respuesta: Re: Teleporte - by gefe - 05.08.2013, 23:52
Re: Teleporte - by darkxdll - 05.08.2013, 23:55
Respuesta: Teleporte - by gefe - 06.08.2013, 00:00
Re: Teleporte - by darkxdll - 06.08.2013, 00:05

Forum Jump:


Users browsing this thread: 2 Guest(s)