05.06.2015, 17:03
Can you help me please? No work at all .. when monster car rumbles nothing happens!
PHP код:
public OnVehicleDeath(vehicleid, killerid)
{
if(vehicleid == monster[1] || vehicleid == monster[2] || vehicleid == monster[3] || vehicleid == monster[4] || vehicleid == monster[5] || vehicleid == monster[6] || vehicleid == monster[7] || vehicleid == monster[8] || vehicleid == monster[9] || vehicleid == monster[10] ||
vehicleid == monster[11] || vehicleid == monster[12] || vehicleid == monster[13])
{
if(oldvehicle[killerid] == monster[1] || oldvehicle[killerid] == monster[2] || oldvehicle[killerid] == monster[3] || oldvehicle[killerid] == monster[4] || oldvehicle[killerid] == monster[5] || oldvehicle[killerid] == monster[6] || oldvehicle[killerid] == monster[7] || oldvehicle[killerid] == monster[8] || oldvehicle[killerid] == monster[9] || oldvehicle[killerid] == monster[10] ||
oldvehicle[killerid] == monster[11] || oldvehicle[killerid] == monster[12] || oldvehicle[killerid] == monster[13])
{
SCM(killerid, COLOR_YELLOW, "* Ai fost respawnat deoarece monster-ul tau a bubuit!");
new eventstr[256], name[MAX_PLAYER_NAME];
GetPlayerName(killerid, name, sizeof(name));
format(eventstr, 256, "Event Monster: %s[ID: %d] a fost respawnat deoarece monster-ul lui a bubuit!", name, killerid);
ABroadCast(COLOR_RED, eventstr, 1);
SetPlayerHealth(killerid, 0);
oldvehicle[killerid] = 0;
}
}
return 1;
}