30.09.2009, 13:58
i just noticed that one of my function in OnPlayerDeath doesn't work fine
you can look my OnPlayerDeath on attach below
this one i expected to work fine but its not.
It doesn't work when playerid had no killerid, i mean when playerid commit suicide or something like that, that function i showed above will not worked, but when playerid got killed by someone the function above will work fine.
you can look my OnPlayerDeath on attach below
this one i expected to work fine but its not.
Quote:
if(PlayerInfo[playerid][pLevel] >= 1) { if(MedicBill[playerid] == 4) { MedicBill[playerid] = 1; return 1; } for (new i; i<13; i++) { GetPlayerWeaponData(playerid, i, PlayerWeapon[playerid][i], PlayerAmmo[playerid][i]); } MedicBill[playerid] = 2; GetPlayerFacingAngle(playerid, InjurAngle[playerid]); GetPlayerPos(playerid, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]); PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid); PlayerInfo[playerid][pLocal] = GetPlayerVirtualWorld(playerid); } else { MedicBill[playerid] = 1; } |