Skripta koju koristim:GTARP
Detaljan opis problema:Kako napraviti da kad igrac ubije mene sa deaglom primer da dobije +10 skila i tako za ostala oruzja.Hvala unapred
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
[pawn] if(killerid != INVALID_PLAYER_ID)
{
PlayerInfo[killerid][pDesert] += 10, SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, PlayerInfo[playerid][pDesert]);
PlayerInfo[killerid][pShotgun] += 10, SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, PlayerInfo[playerid][pShotgun]);
PlayerInfo[killerid][pCombat] += 10, SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, PlayerInfo[playerid][pCombat]);
PlayerInfo[killerid][pMP5] += 10, SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, PlayerInfo[playerid][pMP5]);
PlayerInfo[killerid][pAK47] += 10, SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, PlayerInfo[playerid][pAK47]);
PlayerInfo[killerid][pM4] += 10, SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, PlayerInfo[playerid][pM4]);
}[/pawn]
Gledaj na wiki dal si lepo sve odradio.
u onplayerdeath koristis reason
[pawn]if(reason == 24)
{
PlayerInfo[killerid][pDesert] += 10, SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, PlayerInfo[playerid][pDesert]);
}[/pawn]
if ju nov vat aj min