[Pedido] ajuda x1
#1

bom icastiel me passou esse sitema de x1 e pegou tudo serto
mais eu queria asim tipo eu fiz o comando x1w ae eu queria quanto um player mata o outro no x1 ae fala noticias do x1w PAULO MATOU CARLOS EM UM X1W AJUDA

icastiel me ajudou no meu x1 so falta meu x1w ajuda porfavor

CMD X1 E X1W

pawn Код:
if(strcmp(cmdtext, "/x1run", true) == 0) {
if (GetPVarInt(playerid, "noX1") == 1 )
return SendClientMessage(playerid, -1, "{FF140F}[ERRO]: {FFFFFF}Voзe ja esta em uma arena dm para sair use: /sairdm");
static i, e, cont;
for ( i = 0, e = GetMaxPlayers(); i < e; ++i ) {
if ( IsPlayerConnected(i) && GetPVarInt(playerid, "noX1") != 0 )
cont++;}
if ( cont >= 2 )
return SendClientMessage(playerid, -1, "O X1 jб possui 2 participantes!");
SetPlayerPos(playerid, 2470.997, -1677.914, 13.6328);
SetPlayerVirtualWorld(playerid, 1);
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s foi para o {FF00FF}X1 Running {FF0000}( /x1 )", pname);
SendClientMessageToAll(COLOR_YELLOW, string);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid,16);
SetPlayerPos(playerid, -1416.3827, 1246.9246, 1039.8741);
SetPlayerFacingAngle(playerid, 273.7604);
ResetPlayerWeapons(playerid);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
GivePlayerWeapon(playerid, 22, 9999999999);
GivePlayerWeapon(playerid, 28, 9999999999);
GivePlayerWeapon(playerid, 26, 9999999999);
SetPVarInt(playerid, "noX1", 1);
return 1;}

if(strcmp(cmdtext, "/x1walk", true) == 0) {
if (GetPVarInt(playerid, "noX1") == 1 )
return SendClientMessage(playerid, -1, "{FF140F}[ERRO]: {FFFFFF}Voзe ja esta em uma arena dm para sair use: /sairdm");
static i, e, cont;
for ( i = 0, e = GetMaxPlayers(); i < e; ++i ) {
if ( IsPlayerConnected(i) && GetPVarInt(playerid, "noX1") != 0 )
cont++;}
if ( cont >= 2 )
return SendClientMessage(playerid, -1, "O X1 jб possui 2 participantes!");
SetPlayerPos(playerid, 2470.997, -1677.914, 13.6328);
new pname[MAX_PLAYER_NAME];
SetPlayerVirtualWorld(playerid, 2);
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s foi para o {FF00FF}X1 Walking {FF0000}( /x1w )", pname);
SendClientMessageToAll(COLOR_YELLOW, string);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid,16);
SetPlayerPos(playerid, -1416.3827, 1246.9246, 1039.8741);
SetPlayerFacingAngle(playerid, 273.7604);
ResetPlayerWeapons(playerid);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
GivePlayerWeapon(playerid, 4, 2);
GivePlayerWeapon(playerid, 24, 9999999999);
GivePlayerWeapon(playerid, 25, 9999999999);
GivePlayerWeapon(playerid, 31, 9999999999);
GivePlayerWeapon(playerid, 34, 9999999999);
GivePlayerWeapon(playerid, 29, 9999999999);
SetPVarInt(playerid, "noX1", 1);
return 1;}
pawn Код:
public OnPlayerDeath(playerid, killerid, reason) {

DeletePVar(playerid, "comprou_colete");
   
new QuemMatou[MAX_PLAYER_NAME],String[200];
GetPlayerName(killerid,QuemMatou, sizeof(QuemMatou));
format(String,sizeof(String),"~r~se fodeu",QuemMatou);
GameTextForPlayer(playerid,String,3000 ,5);

if(killerid != INVALID_PLAYER_ID) // Verifica se alguem matou o player
    {
        new string[40], killername[MAX_PLAYER_NAME]; //define as variaveis
        GetPlayerName(playerid, killername); // define o nome do player que matou
        format(string, sizeof(string), "%s(%i) te matou!", killername, killerid); //define a mensagem a ser enviada
        SendClientMessage(playerid,-1,string); // Envia a mensagem ao player
    }

GameTextForPlayer(killerid,"~g~~n~~n~~n~~n~~g~mandou pra ~r~vala", 3000, 5);

    if (GetPVarInt(playerid, "noX1") != 0 ) {

        DeletePVar(playerid, "noX1");
        DeletePVar(killerid, "noX1");

        SpawnPlayer(killerid);
        //SetPlayerHealth(killerid, 100);
       
      static str[128], nome_ganhou[24], nome_morreu[24];

        GetPlayerName(playerid, nome_morreu, 24);
        GetPlayerName(killerid, nome_ganhou, 24);

        format (str, 128, "{30EB00}[X1] {00EBDE}%s {00EBDE}humilhou {00EBDE}%s {30EB00}[X1]", nome_ganhou, nome_morreu);
        SendClientMessageToAll(-1, str);
    }
    return 1;
}
Reply
#2

procura o gm do bloody na net, tem tudo lб.
Reply
#3

afz blody vegas os cara ficam falando que tou plagiando
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)