18.02.2014, 05:16
s4kul eu sou novato serб que vocк poderia ver pra mim?
Meu public OnPlayerDeath estб assim, como ficaria?
Meu public OnPlayerDeath estб assim, como ficaria?
Код:
public OnPlayerDeath(playerid, killerid, reason) { if(IsPlayerConnected(killerid)) { PlayerInfo[killerid][pMatou]++; GivePlayerMoney(killerid, 100); Server[Kills] += 1; } if(killerid == INVALID_PLAYER_ID) { SendDeathMessage(INVALID_PLAYER_ID,playerid,reason); } else { SendDeathMessage(killerid,playerid,reason); } ResetPlayerWeapons(playerid); EmTrabalho[playerid] = 0; KitVip[playerid] = 0; PlayerEvento[playerid] = 0; Hospital[playerid] = 1; gSpectateID[playerid] = killerid; Rojao[playerid] = 0; new Float:xPos,Float:yPos,Float:zPos; GetPlayerPos(playerid,xPos,yPos,zPos); if(gPlayerUsingLoopingAnim[playerid]) { gPlayerUsingLoopingAnim[playerid] = 0; TextDrawHideForPlayer(playerid,txtAnimHelper); } if(IsPlayerInEvento[playerid]) { if(VeiculoEventoExiste[VeiculoEvento[playerid]]) { DestroyVehicle(VeiculoEvento[playerid]); } IsPlayerInEvento[playerid] = false; } if(IsPlayerInRangeOfPoint(killerid,25.0,xPos,yPos,zPos)) { if(GetTickCount() - iFake[playerid] <= 2000) { ++iKills[playerid]; if(iKills[playerid] > 3) { iKills[playerid] = 0; CallLocalFunction("OnPlayerFakeKill","i",playerid); } } } iFake[playerid] = GetTickCount(); GivePlayerMoney(playerid, -50); PlayerInfo[playerid][pMorreu]++; return 1; }