Detaljan opis problema: Napravio sam novi pickup za oruzije kad upise /oruzije dobijes odgovarajuce oruzije al kad napises to, nedobijem nist i pise niste u prostoriji s ormaricima
Dio skripte:
if(PlayerInfo == 8 || PlayerInfo == 8)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1880.9000,-1864.4000,13.6000))//
{
if(OnDuty==0)
{
if(PlayerInfo == 8 || PlayerInfo == 8)
{
format(string, sizeof(string), "* %s je uzeo oruzije iz ormarica.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeGivePlayerWeapon(playerid, 34, 120);
SafeGivePlayerWeapon(playerid, 23, 120);
SafeGivePlayerWeapon(playerid, 4, 20);
OnDuty = 1;
}
else if(OnDuty==1)
{
if(PlayerInfo == 8 || PlayerInfo == 8)
{
format(string, sizeof(string), "* %s stavlja oruzije u svoj ormaric.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeResetPlayerWeapons(playerid);
OnDuty = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Niste u prostoriji sa ormaricima !");
return 1;
}
}Neke slike/video za lakse dobivanje pomoci(neobavezno): http://www.zaslike.com/files/em3jd1zarakqcywk6itj.png
