public OnPlayerDeath(playerid, killerid, reason)
{
if(IsPlayerNPC(playerid))
{
PlayerInfo[playerid][pDeaths] = PlayerInfo[playerid][pDeaths] + 1;
PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills] + 1;
PlayerInfo[killerid][pPoints] = PlayerInfo[killerid][pPoints] + 1000;
new string[50];
format(string, sizeof(string), "+1000 Abschuss");
GameTextForPlayer(killerid, string, 1000, 4);
new killername[MAX_PLAYER_NAME];
GetPlayerName(killerid, killername, sizeof(killername));
format(string, sizeof(string), "Killer : %d",killername);
GameTextForPlayer(killerid, string, 1000, 4);
}
if (PlayerToPoint(100.0, playerid, 130.7311,2413.0356,16.4847))//afghan
{
SetPlayerPos(playerid,147.68785095215,2380.8793945313,16.484375);
}
else
{
SetPlayerPos(playerid,-1514.3666992188,2606.6535644531,55.8359375);
return 1;
}
if (PlayerToPoint(100.0, playerid, -35.4003,1882.1958,20.8184))//rust
{
SetPlayerPos(playerid,-54.186916351318,1921.3619384766,17.640625);
}
else
{
SetPlayerPos(playerid,-1514.3666992188,2606.6535644531,55.8359375);
return 1;
}
PlayerInfo[playerid][pDeaths] = PlayerInfo[playerid][pDeaths] + 1;
SendDeathMessage(killerid, playerid, reason);
PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills] + 1;
PlayerInfo[killerid][pPoints] = PlayerInfo[killerid][pPoints] + 1000;
new string[50];
format(string, sizeof(string), "+1000 Abschuss");
GameTextForPlayer(killerid, string, 1000, 4);
new killername[MAX_PLAYER_NAME];
GetPlayerName(killerid, killername, sizeof(killername));
format(string, sizeof(string), "Killer : %d",killername);
GameTextForPlayer(killerid, string, 1000, 4);
if(GetPlayerWeapon(killerid) == 0)
{
format(string, sizeof(string), "Killerwaffe:~n~]Faust]");
GameTextForPlayer(killerid, string, 3000, 4);
return 1;
}
if(GetPlayerWeapon(killerid) == 1)
{
format(string, sizeof(string), "Killerwaffe:~n~]Schlagring]");
GameTextForPlayer(killerid, string, 3000, 4);
return 1;
}
if(GetPlayerWeapon(killerid) == 4)
{
format(string, sizeof(string), "Killerwaffe:~n~]Taktikmesser]");
GameTextForPlayer(killerid, string, 3000, 4);
return 1;
}
if(GetPlayerWeapon(killerid) == 8)
{
format(string, sizeof(string), "Killerwaffe:~n~]Katana]");
GameTextForPlayer(killerid, string, 3000, 4);
return 1;
}
if(GetPlayerWeapon(killerid) == 16)
{
format(string, sizeof(string), "Killerwaffe:~n~]Semtex]");
GameTextForPlayer(killerid, string, 3000, 4);
return 1;
}
if(GetPlayerWeapon(killerid) == 18)
{
format(string, sizeof(string), "Killerwaffe:~n~]Molotov Cocktail]");
GameTextForPlayer(killerid, string, 3000, 4);
return 1;
}
if(GetPlayerWeapon(killerid) == 23)
{
format(string, sizeof(string), "Killerwaffe:~n~]Silencer]");
GameTextForPlayer(killerid, string, 3000, 4);
return 1;
}
if(GetPlayerWeapon(killerid) == 24)
{
format(string, sizeof(string), "Killerwaffe:~n~]Deagle]");
GameTextForPlayer(killerid, string, 3000, 4);
return 1;
}
if(GetPlayerWeapon(killerid) == 27)
{
format(string, sizeof(string), "Killerwaffe:~n~]Spas 12]");
GameTextForPlayer(killerid, string, 3000, 4);
return 1;
}
if(GetPlayerWeapon(killerid) == 28)
{
format(string, sizeof(string), "Killerwaffe:~n~]UZI]");
GameTextForPlayer(killerid, string, 3000, 4);
return 1;
}
if(GetPlayerWeapon(killerid) == 29)
{
format(string, sizeof(string), "Killerwaffe:~n~]MP5]");
GameTextForPlayer(killerid, string, 3000, 4);
return 1;
}
if(GetPlayerWeapon(killerid) == 30)
{
format(string, sizeof(string), "Killerwaffe:~n~]AK47]");
GameTextForPlayer(killerid, string, 3000, 4);
return 1;
}
if(GetPlayerWeapon(killerid) == 31)
{
format(string, sizeof(string), "Killerwaffe:~n~]M4A1]");
GameTextForPlayer(killerid, string, 3000, 4);
return 1;
}
if(GetPlayerWeapon(killerid) == 34)
{
format(string, sizeof(string), "Killerwaffe:~n~]Intervention]");
GameTextForPlayer(killerid, string, 3000, 4);
return 1;
}
if(GetPlayerWeapon(killerid) == 39)
{
format(string, sizeof(string), "Killerwaffe:~n~]C4]");
GameTextForPlayer(killerid, string, 3000, 4);
return 1;
}
return 1;
}
Alles anzeigen