16.05.2012, 17:11
Use this now.
If this doesnt work for you then give us the line where the warning comes.
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new msg[128],reasonMsg[32], pname[MAX_PLAYER_NAME], string[128], deathreason[20];
SendDeathMessage(killerid,playerid,reason);
GameTextForPlayer(playerid,"~r~~h~OWNED",10000,1);
GetPlayerName(playerid, pname, sizeof(pname));
GetWeaponName(reason, deathreason, 20);
new pstring[128]; //player message
new killer[MAX_PLAYER_NAME];
GetPlayerName(killerid, killer, sizeof(killer));
if(killerid != INVALID_PLAYER_ID) return SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); //you can change the 1 to any number that will be added to the score!
if(InDM[playerid]==1) return InDM[playerid]=0;
SetPlayerWorldBounds(playerid,20000.0000,-20000.0000,20000.0000,-20000.0000);
return 1;
}
If this doesnt work for you then give us the line where the warning comes.