CMD:Kill { SetPlayerHealth(playerid,0); }
stock ALTER_SpawnPlayer(playerid)
{
if(IsPlayerInAnyVehicle(playerid))
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid, 0, 0, 0);
SpawnPlayer(playerid);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
// code ..
// code ..
// code ..
// code ..
ALTER_SpawnPlayer(playerid);
return 1;
}
You're talking about that shaking camera after you die? You want to disable that?
Add this stock to your script pawn Код:
pawn Код:
|
This forum requires that you wait 240 seconds between posts. Please try again in 10 seconds.
if(strcmp(cmd,"/kill",true) == 0) { SetPlayerHealth(playerid, 0); return 1; } public OnPlayerDeath(playerid, killerid, reason) { //Killingspree new str[ 256 ], KillerName[MAX_PLAYER_NAME]; GetPlayerName(killerid, KillerName, sizeof(KillerName)); //vehicle destroy SetVehicleToRespawn(GetPlayerVehicleID(playerid)); //end veh destroy //End KS GodMode[playerid] = 0; SendDeathMessage(killerid, playerid, reason); if(killerid != INVALID_PLAYER_ID) { TotalKills[killerid]++; SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); GameTextForPlayer(killerid,"~w~+1 Score~R~~N~+1 kill~N~ ~g~+1000$", 5000, 1); GivePlayerMoney(killerid, 1000); Streaks[killerid]++; if(Streaks[killerid] == 3) { format(str, sizeof(str), "%s {00FFEE}is Triple Kill {FFAF00}(3 kills +3 Score!)", KillerName); //here, you're formatting the defined string and add the content (text) SendClientMessageToAll(0xADFF2FAA, str); SetPlayerScore(killerid, GetPlayerScore(killerid) + 2); } if(Streaks[killerid] == 5) { format(str, sizeof(str), "%s {F81414}is Killing Spree {FFAF00}(5 Kills +5 Score!!)", KillerName); //got no creativity lmao lol//here, you're formatting the defined string and add the content (text) SendClientMessageToAll(0xADFF2FAA, str); SetPlayerScore(killerid, GetPlayerScore(killerid) + 4); } if(Streaks[killerid] == 10) { format(str, sizeof(str), "%s {B8FF02}is UNSTOPPABLE {FFAF00}(10 Kills +10 Score!!!)", KillerName); //got no creativity lmao lol//here, you're formatting the defined string and add the content (text) SendClientMessageToAll(0xADFF2FAA, str); } } TotalDeaths[playerid]++; SetPlayerScore(playerid, GetPlayerScore(playerid) - 1); GivePlayerMoney(playerid, -1000); GameTextForPlayer(playerid,"~R~W~B~A~G~S~W~T~P~E~G~D~N~~N~~N~~N~~N~~R~Rest ~W~In ~g~PEACE", 3000, 5); return 1; }