OnPlayerGiveDemage..
#1

Hello everyone, I am currently developing a 'different' gamemode, as I never seen before, and I am wondering...how can I give the weapons higher demage? Let's say 1 hit will take down, 500 HP?

And another problem of mine, is that the playerscore won't save..I don't know why tho'.
Here's my disconnect.

pawn Код:
new INI:File = INI_Open(UserPath(playerid));
    INI_SetTag(File,"data");
    INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
    INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
    INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
    INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
    INI_WriteInt(File,"Score",PlayerInfo[playerid][pScore]);
    INI_Close(File);
And here's my login..
pawn Код:
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
                    SetPlayerScore(playerid, PlayerInfo[playerid][pScore]);
And yet, it won't save the score. (The score is given once you kill someone.)

Thanks in advance!
Reply


Messages In This Thread
OnPlayerGiveDemage.. - by CesarLT - 08.10.2013, 16:27
Re: OnPlayerGiveDemage.. - by SilentSoul - 08.10.2013, 16:36
Re: OnPlayerGiveDemage.. - by -Prodigy- - 08.10.2013, 16:41
Re: OnPlayerGiveDemage.. - by ]Rafaellos[ - 08.10.2013, 16:47
Re: OnPlayerGiveDemage.. - by iFiras - 08.10.2013, 16:52
Re: OnPlayerGiveDemage.. - by CesarLT - 08.10.2013, 17:02
Re: OnPlayerGiveDemage.. - by iFiras - 08.10.2013, 17:05
Re: OnPlayerGiveDemage.. - by CesarLT - 08.10.2013, 17:07
Re: OnPlayerGiveDemage.. - by Konstantinos - 08.10.2013, 17:11
Re: OnPlayerGiveDemage.. - by iFiras - 08.10.2013, 17:11

Forum Jump:


Users browsing this thread: 2 Guest(s)