14.08.2011, 02:02
Hi all
I have this script:
But, when Player and Killer in DM .. the money/score system dont work
Can some one fix that, please
[I have the rest of this script, But this is where the problem is ]
Sorry for my bad English :$
I have this script:
pawn Код:
new killer[MAX_PLAYER_NAME];
GetPlayerName(killerid, killer, sizeof(killer));
if (strlen(deathreason) > 0)
{
format(string, sizeof(string), "%s kills %s [%s] ",killer ,name ,deathreason);
if(DMArena[playerid]==1 && DMArena[killerid]==1)
{
GivePlayerMoney(killerid, 3000);
GivePlayerMoney(playerid, -3000);
if(AccInfo[killerid][LoggedIn] == 1)
{
new KScore;
KScore = GetPlayerScore(killerid);
SetPlayerScore(killerid, KScore +200);
}
else
{
}
if(AccInfo[playerid][LoggedIn] == 1)
{
new PScore;
PScore = GetPlayerScore(playerid);
SetPlayerScore(killerid, PScore +200);
}
}
else
{
}
}
else
{
format(string, sizeof(string), "%s kills %s", killer, name);
}
}
SendClientMessageToAll(RED, string);
{
}
But, when Player and Killer in DM .. the money/score system dont work
Can some one fix that, please
[I have the rest of this script, But this is where the problem is ]
Sorry for my bad English :$