Need help with this script please!
#4

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
Reply


Messages In This Thread
[SOLVED] - by MrWupiazZzLT - 29.06.2014, 14:42
Re: Need help with this script please! - by MrWupiazZzLT - 29.06.2014, 14:50
Re: Need help with this script please! - by PrivatioBoni - 29.06.2014, 14:51
Re: Need help with this script please! - by MrWupiazZzLT - 29.06.2014, 16:15
Re: Need help with this script please! - by PrivatioBoni - 29.06.2014, 16:23
Re: Need help with this script please! - by MrWupiazZzLT - 29.06.2014, 16:24
Re: Need help with this script please! - by MrWupiazZzLT - 29.06.2014, 16:28
Re: Need help with this script please! - by PrivatioBoni - 29.06.2014, 16:29
Re: Need help with this script please! - by MrWupiazZzLT - 29.06.2014, 16:31

Forum Jump:


Users browsing this thread: 1 Guest(s)