26.09.2011, 01:38
Ok so recently i hit the "new" button on pawn and got tired of editing other scripts, and wanted to make my own RP gamemode, not really to start my own server, just for the heck of it and to learn more about scripting and to release it later. Using samp tutorials ect i manged to get pretty decently far in the gamemode. Login and register thanks to kush tutorial, and a few others who helped me with ideas or bug fixing on the forum. But now i have ran into another problem.
I have a basic admin system. when i /sethp [id] [0] the player dies, but their deaths dont go up. if they die, their deaths wont increase, nor will their kills, the cash isnt saving, and the amount of cash i want each player to start with wont save. As well as if my server restarts or crashes the players skin or stats wont be saved. and YES i have been searching the forums for answers but no helpful ones have been found.
I have a basic admin system. when i /sethp [id] [0] the player dies, but their deaths dont go up. if they die, their deaths wont increase, nor will their kills, the cash isnt saving, and the amount of cash i want each player to start with wont save. As well as if my server restarts or crashes the players skin or stats wont be saved. and YES i have been searching the forums for answers but no helpful ones have been found.
pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
PlayerInfo[killerid][pKills]++;
PlayerInfo[playerid][pDeaths]++;
SetPlayerPos(playerid, 2033.8181, -1403.8074, 17.2754);
GivePlayerMoney(playerid, -2000);
SpawnPlayer(playerid);
return 1;
}