10.12.2013, 17:32
Eu jб resolvi esse erro.nгo tinha visto que jб tinha hihi' mais agora ta dando um bagui loco..mesmo quando o cara morre ele й demitido e й que jб fiz tudo..sу que quando ele й demitido nгo a aparece a mensagem: O Seu lнder lhe demitiu. Vocк agora й um Civil !
E ficou assim :
E ficou assim :
PHP код:
public OnPlayerDeath(playerid, killerid, reason) {
// Hospitalizado[playerid] = 1;
// TempoHospital[playerid] = 40;
if ( OrgTemp[playerid] == true) {
OrgTemp[playerid] = false;
PlayerInfo[playerid][pMembro] = 0;
}
public OnPlayerDisconnect(playerid, reason)
{
new car = GetPlayerVehicleID(playerid);
Police[car][Use] = false;
AttachObjectToVehicle(Police[car][Siren],0,0.0,0.0,0.0,0.0,0.0,0.0);
AttachObjectToVehicle(Police[car][Blue],0,0.0,0.0,0.0,0.0,0.0,0.0);
AttachObjectToVehicle(Police[car][Red],0,0.0,0.0,0.0,0.0,0.0,0.0);
DestroyObject(Police[car][Siren]);
DestroyObject(Police[car][Blue]);
DestroyObject(Police[car][Red]);
KillTimer(Police[car][Timer]);
Equipamentos[playerid] = 1;
sireneon[playerid] = 1;
KillTimer(tempotd[playerid]);
new caller = Mobile[playerid];
OnPlayerSave(playerid);
if(caller != 255)
{
if(caller < 255)
{
SendClientMessage(caller, COLOR_GRAD2, "A ligaзгo caiu...");
CellTime[caller] = 0;
CellTime[playerid] = 0;
Mobile[caller] = 255;
}
Mobile[playerid] = 255;
CellTime[playerid] = 0;
}
if ( OrgTemp[playerid] == true) {
OrgTemp[playerid] = false;
PlayerInfo[playerid][pMembro] = 0;
}