10.02.2012, 04:51
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);
SetPlayerScore(playerid, GetPlayerScore(playerid)-1);
if(killerid != INVALID_PLAYER_ID)
{
SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
GivePlayerMoney(killerid, 10000);
GivePlayerWeapon(killerid, 16, 2);
SendClientMessage(killerid, 0xFF0000AA, "You Get 10,000 Cash & 2 Grenades");
}
will it give the killer 10,000 cash and 2 grenades.
its because i carnt test it without another player
thank you people
{
SendDeathMessage(killerid, playerid, reason);
SetPlayerScore(playerid, GetPlayerScore(playerid)-1);
if(killerid != INVALID_PLAYER_ID)
{
SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
GivePlayerMoney(killerid, 10000);
GivePlayerWeapon(killerid, 16, 2);
SendClientMessage(killerid, 0xFF0000AA, "You Get 10,000 Cash & 2 Grenades");
}
will it give the killer 10,000 cash and 2 grenades.
its because i carnt test it without another player
thank you people