[POMOC]Oko skila za oruzje

Započeo Marko_Naruto, Novembar 21, 2016, 19:17:20 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

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):
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]);
	}
Poslednja Izmena: Novembar 21, 2016, 23:40:46 POSLE PODNE od MEDO


u onplayerdeath koristis reason
if(reason == 24)
{
PlayerInfo[killerid][pDesert] += 10, SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, PlayerInfo[playerid][pDesert]);
}

if ju nov vat aj min
Poslednja Izmena: Novembar 22, 2016, 14:20:56 POSLE PODNE od MEDO