14.11.2016, 10:51
hey guys i have a mission system but i have just a problem with a next step
first step from here is ok , but after i am doing first step i want to change it to the next one "else if etc..." how can i do it ? some ideas?
HTML Code:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ) { if(OwnerMisiune[playerid] == 1) { if(weaponid == 34) { if(hittype == BULLET_HIT_TYPE_OBJECT) { CreateMisiuneActor(); DestroyObject(MisiuneSpeciala[0]); SendClientMessage(playerid, -1, "Ai distrus obiectul, du-te acum aici pentru a omori acea persoana cu tricou negru."); } else if(hittype == BULLET_HIT_TYPE_OBJECT) { MisiuneActiva = 0; DestroyActor(Actorr[0]); DestroyActor(Actorr[1]); OwnerMisiune[playerid] = 0; SendClientMessage(playerid, -1, "Ai omorit persoana in tricou negru."); } } } return 1; }