new bool: OrgTemp[MAX_PLAYERS];
CMD:entrarorg(playerid, params[]) {
if ( PlayerInfo[playerid][pSocio] == 0 )
return false;
if ( isnull(params) )
return SendClientMessage(playerid, -1, "/entrarorg [id]");
new id_ = strval(params);
if ( id_ > MAX_ORGS || id_ < 1 )
return SendClientMessage(playerid, -1, "Id invбlido!");
PlayerInfo[playerid][pMember] = id_;
OrgTemp[playerid] = true;
return 1;
}
public OnPlayerDeath(playerid, killerid, reason) {
if ( OrgTemp[playerid] == true) {
OrgTemp[playerid] = false;
PlayerInfo[playerid][pMember] = 0;
}
return 1;
}
public OnPlayerDisconnect(playerid, reason) {
if ( OrgTemp[playerid] == true) {
OrgTemp[playerid] = false;
PlayerInfo[playerid][pMember] = 0;
}
return 1;
}
C:\Users\Meu PC\Desktop\GM BTB 4.0\gamemodes\BTB.pwn(9132) : error 021: symbol already defined: "OnPlayerDisconnect" C:\Users\Meu PC\Desktop\GM BTB 4.0\gamemodes\BTB.pwn(9142) : error 021: symbol already defined: "OnPlayerDeath" |
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;
}
if ( OrgTemp[playerid] == true) {
OrgTemp[playerid] = false;
PlayerInfo[playerid][pMembro] = 0;
if ( OrgTemp[playerid] == true) {
OrgTemp[playerid] = false;
PlayerInfo[playerid][pMember] = 0;
}