15.10.2011, 18:21
SetPlayerSkillLevel(killerid) [DeagleSkill][killerid] + 1 );
You cant make it like this. You want your own skill info and using SetPlayerSkillLevel you are setting Server's Player Skill level. If you want like that make it:
You cant make it like this. You want your own skill info and using SetPlayerSkillLevel you are setting Server's Player Skill level. If you want like that make it:
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
if( reason == 24 ) // M4 weapon ID
{
SetPlayerSkillLevel(killerid,2,+1);
PlayerInfo[killerid][DeagleSkill]++;
SendClientMessage( killerid, 0x00FF00FF, "Upgraded your Deagle skill. Keep practicing!" );
}
return 1;
}