[Ajuda] bug ao morrer
#7

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid,playerid,reason);
new kname[MAX_PLAYER_NAME];
GetPlayerName(killerid, kname, MAX_PLAYER_NAME);
format(file2, sizeof(file2), PASTA_CONTAS, kname);
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
GameTextForPlayer(playerid,"~r~voce morreu..", 2500, 5);
dini_IntSet(file, "usoudroga", 1);
TextDrawShowForPlayer(playerid, topblack);
TextDrawShowForPlayer(playerid, bottomblack);
algemado[playerid] = 0;
GPS_Spawned[playerid] = 0;
autoescola[playerid] = 0;
sequestro[playerid] = 0;
prefls[playerid] = 0;
prefsf[playerid] = 0;
preflv[playerid] = 0;
nobarls[playerid] = 0;
nobarsf[playerid] = 0;
nobarlv[playerid] = 0;
nobarfc[playerid] = 0;
nautlls[playerid] = 0;
dini_IntSet(file, "convitent", 0);
dini_IntSet(file, "Entrevista", 0);
dini_IntSet(file2, "DM", 1);
SetPlayerWantedLevel(killerid, 1);
dini_IntSet(file, "usoudroga", 0);
if(GetClosestHospital(playerid) == 0){
SetSpawnInfo(playerid,1,dini_Int(file, "Skin"),-2651.6501, 634.4510, 14.4531, 180.0000, 0, 0, 0, 0, 0, 0);
}
else if(GetClosestHospital(playerid) == 1){
SetSpawnInfo(playerid,1,dini_Int(file, "Skin"),1173.5842,-1324.5615,15.1953,278.4624,0,0,0,0,0,0);
}
else if(GetClosestHospital(playerid) == 2){
SetSpawnInfo(playerid,1,dini_Int(file, "Skin"),2031.9415,-1404.3578,17.2614,165.8180,0,0,0,0,0,0);
}
else if(GetClosestHospital(playerid) == 3){
SetSpawnInfo(playerid,1,dini_Int(file, "Skin"),1582.5615,1768.7921,10.8203,93.7454,0,0,0,0,0,0);
}
Reply


Messages In This Thread
bug ao morrer - by Tenhos - 27.04.2013, 20:58
Re: BUG AO MORRER - by AlucardSnow - 27.04.2013, 21:01
Re: BUG AO MORRER - by Mteck - 27.04.2013, 21:24
Re: BUG AO MORRER - by AlucardSnow - 27.04.2013, 21:26
Respuesta: BUG AO MORRER - by Tenhos - 27.04.2013, 22:45
Re: BUG AO MORRER - by iFox - 27.04.2013, 23:53
Respuesta: bug ao morrer - by Tenhos - 28.04.2013, 01:44
Re: bug ao morrer - by iFox - 28.04.2013, 02:56
Respuesta: bug ao morrer - by Tenhos - 28.04.2013, 15:39
Respuesta: bug ao morrer - by Tenhos - 05.05.2013, 14:16

Forum Jump:


Users browsing this thread: 4 Guest(s)