if(VigilantePlayer[killerid]==1)
{
if(GetPlayerWeapon(killerid)==25)
{
VigilanteShotgun[killerid]++;
}
if(IsPlayerInAnyVehicle(playerid))
{
if(VigilanteCar[playerid]==1)
{
VigilanteSmash[killerid]++;
}
}
}
|
Post the whole OnPlayerDeath callback.
If your just copying it to another gm to test, the prob will still be there. |
PlayerData[killerid][Kills]++;
PlayerData[playerid][Deaths]++;
GivePlayerMoney(killerid, 500);
if(GetPlayerWeapon(killerid)==16 || GetPlayerWeapon(killerid)==35 || GetPlayerWeapon(killerid)==36 || GetPlayerWeapon(killerid)==39 || GetPlayerWeapon(killerid)==51)
{
PlayerData[killerid][BombSquad]++;
BombSkill[killerid]++;
if(BombSkill[killerid]==25)
{
SendClientMessage(killerid, LIGHTGREEN, ">> "COL_WHITE"BombSquad skill upgraded, you can now defuse claymores "COL_LIGHTORANGE"/defuse");
}
if(BombSkill[killerid]==150)
{
SendClientMessage(killerid, LIGHTGREEN, ">> "COL_WHITE"BombSquad skill upgraded, claymores will not explode anymore as you pass");
}
}
if(VigilantePlayer[playerid]==1)
{
VigilanteDeath[playerid]++;
if(VigilanteDeath[playerid]>=3)
{
VigilantePlayer[playerid]=0;
InMission[playerid]=0;
SendClientMessage(playerid, RED, "<!> "COL_WHITE"Vigilante mission fail, you died 3 times");
}
}
if(VigilantePlayer[killerid]==1)
{
if(GetPlayerWeapon(killerid)==25)
{
VigilanteShotgun[killerid]++;
}
if(IsPlayerInAnyVehicle(playerid))
{
if(VigilanteCar[playerid]==1)
{
VigilanteSmash[killerid]++;
}
}
}
return 1;
}
else if
if(IsPlayerConnected(killerid))
{
|
I just tried to add
Код:
if(IsPlayerConnected(killerid))
{
Thank's for help. |