Quote:
Originally Posted by PrivatioBoni
pawn Код:
public OnPlayerDeath(playerid, killerid, reason) { if(killerid != INVALID_PLAYER_ID) { new currentveh; currentveh = GetPlayerVehicleID(playerid); DestroyVehicle(currentveh); SetPlayerScore(killerid,GetPlayerScore(killerid)+10); SendClientMessage(killerid, 0xFFFFFFFF, "{FF0000}Yay! For killing you got {FFFFFF}+10 Score{FF0000}! LETS KILL MORE!"); } return 1; }
Changes:
Some "playerid" changed to "killerid"
Added code to check if the "killerid" is valid.
P.S - bumps need to be after 24hours+.
|
So thats mean that now this wont bugging? Or you changed killerid to playerid so killerid will be playerid