Jump to content
  • 0

Question

Posted

am si eu o problema la comanda /su , atunci cand dau wanted unui player si dupa il omor , nu il baga jail si wantedu ramane acelasi

RPG.VIBEPLAY.RO

Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!

8 answers to this question

Recommended Posts

Posted

Verifica la OnPlayerDeath

ce sa veiric la OnPlayerDeath =)) , explica ce si cum se face ...

stie cineva ?

RPG.VIBEPLAY.RO

Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!

Posted

dute in acel script

apasa ctrl+f(adica control si f in acelasi timp)

si scrie public OnPlayerDeath

si aratane ce scrie acolo

[shadow=red,left]daca asa nu intelegi deja....[/shadow]

M-am lasat de comunitatea sa-mp.ro

Posted

dute in acel script

apasa ctrl+f(adica control si f in acelasi timp)

si scrie public OnPlayerDeath

si aratane ce scrie acolo

[shadow=red,left]daca asa nu intelegi deja....[/shadow]

cam asta am ... [pawn]public OnPlayerDeath(playerid, killerid, reason)

{

new name[MAX_PLAYER_NAME];

new string[128];//era 256

new str[128];

//new dmessage[128];

//new deathreason[20];

new playercash;

new victimteam;

new Float:px,Float:py,Float:pz;

new killerteam;

victimteam = gTeam[playerid];

killerteam = gTeam[killerid];

gPlayerSpawned[playerid] = 0;

GetPlayerName(playerid, name, sizeof(name));

PlayerInfo[playerid][pLocal] = 255;

GetPlayerPos(playerid, px, py, pz);

if(IsWar && killerid != INVALID_PLAYER_ID) Killing[gTeam[killerid]]++; // OnPlayerDeath

Killing[PlayerInfo[killerid][pLeader]]++;

Killing[PlayerInfo[killerid][pMember]]++;

/*if(IsWar == true && killerid != INVALID_PLAYER_ID)

{

if(gTeam[killerid] == 5 || gTeam[killerid] == 16 || gTeam[killerid] == 17)  return g_Team1_Kills++;

if(gTeam[killerid] == 18 || gTeam[killerid] == 15 || gTeam[killerid] == 6)  return g_Team2_Kills++;

}*/

[/pawn]

RPG.VIBEPLAY.RO

Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!

Posted

Daca vrei sa fi ajutat dane si noua tot publicul nu doar jumatate

uite asta cred ca este tot , nu ma pricep .... [pawn]public OnPlayerDeath(playerid, killerid, reason)

{

new name[MAX_PLAYER_NAME];

new string[128];//era 256

new str[128];

//new dmessage[128];

//new deathreason[20];

new playercash;

new victimteam;

new Float:px,Float:py,Float:pz;

new killerteam;

victimteam = gTeam[playerid];

killerteam = gTeam[killerid];

gPlayerSpawned[playerid] = 0;

GetPlayerName(playerid, name, sizeof(name));

PlayerInfo[playerid][pLocal] = 255;

GetPlayerPos(playerid, px, py, pz);

if(IsWar && killerid != INVALID_PLAYER_ID) Killing[gTeam[killerid]]++; // OnPlayerDeath

Killing[PlayerInfo[killerid][pLeader]]++;

Killing[PlayerInfo[killerid][pMember]]++;

/*if(IsWar == true && killerid != INVALID_PLAYER_ID)

{

if(gTeam[killerid] == 5 || gTeam[killerid] == 16 || gTeam[killerid] == 17)  return g_Team1_Kills++;

if(gTeam[killerid] == 18 || gTeam[killerid] == 15 || gTeam[killerid] == 6)  return g_Team2_Kills++;

}*/

    if(playerid == HuntedPlayer)

{

format(str, sizeof(str), "{FFFFFF}[{FF6600}Vaneaza & Ucide{FFFFFF}]{00B366} %s a fost omorat de catre{00B366} %s", PlayerName(playerid), PlayerName(killerid));

SendClientMessageToAll(0xFFD700AA,str);

format(str, sizeof(str), "{FFFFFF}[{FF6600}Vaneaza & Ucide{FFFFFF}] Acesta a castigat{008E00} %d.{FFFFFF} Un nou event va incepe in 30 minute!", HuntReward );

SendClientMessageToAll(0xFFD700AA,str);

IsHunted[playerid] = 0;

SetPlayerToTeamColor(playerid);

SetPlayerSpawn(playerid);

GivePlayerMoney(killerid, HuntReward);

HuntedPlayer = INVALID_PLAYER_ID;

StartHunt = SetTimer("StartNewHuntGame", 1800000, 0);

KillTimer(EndHunt);

for(new i = 0; i <= MAX_PLAYERS; i++)

{

if(IsPlayerConnected(i))

{

InHuntGame = 0;

}

}

}

    if(PlayerInfo[playerid][pJailed] > 0 && PlayerInfo[killerid][pJailed] > 0)

{

  JFKick[killerid] += 1;

  new jaildm = PlayerInfo[killerid][pJailTime];

  PlayerInfo[killerid][pJailTime] = (jaildm + 250);

  SendClientMessage(killerid,0xE42217FF,"[WARNING]: You just killed a person in the jail.+ 250 seconds jail | Reason: Jail Fighting!");

}

if(killerid != 255)

{

if(GetPlayerState(killerid) == 2)

{

SendClientMessage(killerid, COLOR_YELLOW, "DriveBy Kill, dont abuse it, On foot gets you $$$!");

//GivePlayerMoney(killerid, - 50000);

new killer[MAX_PLAYER_NAME];

            GetPlayerName(killerid, killer, sizeof(killer));

            format(string,128,"* You are killed by %s | Reason: Drive By.",killer);

            SendClientMessage(playerid, COLOR_BLUE, string);

return 1;

}

}

if(playerid == CashboxOwner)

{

    new pName[MAX_PLAYER_NAME];

    GetPlayerPos(playerid, CashboxX, CashboxY, CashboxZ);

    GetPlayerName(playerid, pName, sizeof(pName));

    format(str, 128, "%s (ID: %d) a murit si a scapat servieta.", pName, playerid);

    SendClientMessageToAll(0xFFD700AA, str);

    SendClientMessage(playerid,0xAA3333AA,"{F81414}Ai murit si ai scapat servieta!");

CashboxPickup = CreatePickup(1210, 3, CashboxX, CashboxY, CashboxZ);

CashboxOwner = INVALID_PLAYER_ID;

}

if(reason == 38)

{

new kstring[128];

new kickname[MAX_PLAYER_NAME];

if(IsPlayerConnected(killerid))

{

GetPlayerName(killerid, kickname, sizeof(kickname));

format(string, 128, "PlayINFERNO: [%d]%s just killed a player with minigun, be sure he's not fake-killing.",killerid,kickname);

ABroadCast(COLOR_YELLOW,string,1);

printf("%s", kstring);

}

}[/pawn]

RPG.VIBEPLAY.RO

Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.