public OnPlayerDeath(playerid, killerid, reason) { pStats[playerid][Spawned] = 0; if(pStats[playerid][UsingAnim]) { pStats[playerid][UsingAnim] = 0; TextDrawHideForPlayer(playerid,txtAnimHelper); } if(pStats[killerid][Zone] == 1 || pStats[killerid][Zone] == 3) { SendDeathMessage(killerid, playerid, reason); if(pStats[playerid][Admin] >= 1) { if(pStats[killerid][Zone] == 1) { SendClientMessage(killerid, Green, "Newkill: You received $10.000 and 1 Points for murder an Admin!"); GivePlayerCash(killerid,10000); pStats[killerid][Points]++; } if(pStats[killerid][Zone] == 3) { SendClientMessage(killerid, Green, "Newkill: You received $20.000 and 2 Points for murder an Admin!"); GivePlayerCash(killerid,20000); pStats[killerid][Points]+=2;} } else { if(pStats[killerid][Zone] == 1) { SendClientMessage(killerid, Green, "Newkill: You received $5.000 and 1 Points for this murder"); GivePlayerCash(killerid,5000); pStats[killerid][Points]++;} if(pStats[killerid][Zone] == 3) { SendClientMessage(killerid, Green, "Newkill: You received $10.000 and 2 Points for this murder"); GivePlayerCash(killerid,10000); pStats[killerid][Points]+=2; } } } for(new i=0; i<MAX_PLAYERS; i++) { if(GetPlayerState(i) == PLAYER_STATE_SPECTATING && pStats[i][pSpec] == playerid) { TogglePlayerSpectating(playerid, 0); pStats[playerid][pSpec] = -1; SpawnPlayer(i); } } return 1; }
public OnPlayerSpawn(playerid) { pStats[playerid][Spawned] = 1; if(RaceParticipant[playerid] >= 1) { Participants--; RaceParticipant[playerid]=0; DisablePlayerRaceCheckpoint(playerid); SendClientMessage(playerid,Green, "» You leaved the race!"); } if(pStats[playerid][ObjectOn] != -1) { DestroyObject(Shark[playerid]); pStats[playerid][ObjectOn] = -1; } if(pStats[playerid][AFK] == 1) { new string[128]; format(string, sizeof(string), "» %s is now back at The Keyboard!",pName(playerid)); SendClientMessageToAll(0xf073b9ff, string); pStats[playerid][AFK] = 0; } RemovePlayerWeapons(playerid); pStats[playerid][Spawned] = 1; TogglePlayerControllable(playerid, true); pStats[playerid][Skin] = GetPlayerSkin(playerid); if(pStats[playerid][Zone] != 0) { if(pStats[playerid][Zone] == 1) { SetPlayerInZone(playerid,1); } if(pStats[playerid][Zone] == 2) { SetPlayerInZone(playerid,2); } if(pStats[playerid][Zone] == 3) { SetPlayerInZone(playerid,3); } } else { new rand = random(sizeof(RandomSpawnSpawns)); SetPlayerPos(playerid,RandomSpawnSpawns[rand][0], RandomSpawnSpawns[rand][1], RandomSpawnSpawns[rand][2]); SetPlayerFacingAngle(playerid,RandomSpawnSpawns[rand][3]); } return 1; }
for(new i=0; i<MAX_PLAYERS; i++) { if(GetPlayerState(i) == PLAYER_STATE_SPECTATING && pStats[i][pSpec] == playerid) { TogglePlayerSpectating(playerid, 0); pStats[playerid][pSpec] = -1; SpawnPlayer(i); } }
Originally Posted by Thrarod
I said Bad News, should I bold it
![]() ![]() |