public OnPlayerPickUpPickup(playerid, pickupid)
public OnPlayerUpdate(playerid){if(IsPlayerInRangeOfPoint(playerid,2.0,bejx,bejy,bejz)) TextDrawShowForPlayer(playerid,textdrawid);else if(IsPlayerInRangeOfPoint(playerid,2.0,bejx2,bejy2,bejz2)) TextDrawShowForPlayer(playerid,textdrawid);else TextDrawHideForPlayer(playerid,textdrawid);return 1;}
else if(IsPlayerInRangeOfPoint(playerid,2.0,bejx2,bejy2,bejz2))
new TextString[256]; for(new b = 1;b < sizeof(BusinessInfo);b++) { if(IsPlayerInRangeOfPoint(playerid,2.0,BusinessInfo[bEntranceX], BusinessInfo[bEntranceY], BusinessInfo[bEntranceZ])) { if(BusinessInfo[bHasznalatban] == 0) { format(TextString, sizeof(TextString), \"%s\", BusinessInfo[bNev]); TextDrawSetString(BejaratiText, TextString); TextDrawShowForPlayer(playerid, BejaratiText); TextDrawShowForPlayer(playerid, BejaratiBox); } if(BusinessInfo[bHasznalatban] == 1) { format(TextString, sizeof(TextString), \"%s Tulajdonos: %s\", BusinessInfo[bNev], BusinessInfo[bTulajdonos]); TextDrawSetString(KijaratiText, TextString); TextDrawShowForPlayer(playerid, KijaratiText); TextDrawShowForPlayer(playerid, BejaratiBox); } } else { TextDrawHideForPlayer(playerid, KijaratiText), TextDrawHideForPlayer(playerid, BejaratiText), TextDrawHideForPlayer(playerid, BejaratiBox); } if(IsPlayerInRangeOfPoint(playerid,2.0,BusinessInfo[bExitX], BusinessInfo[bExitY], BusinessInfo[bExitZ])) { format(TextString, sizeof(TextString), \"Kilepes az utcara innen: %s\", BusinessInfo[bNev]); TextDrawSetString(KijaratiText, TextString); TextDrawShowForPlayer(playerid, KijaratiText); TextDrawShowForPlayer(playerid, BejaratiBox); } else { TextDrawHideForPlayer(playerid, KijaratiText), TextDrawHideForPlayer(playerid, BejaratiText), TextDrawHideForPlayer(playerid, BejaratiBox); } }
new TextString[256];for(new b;b < sizeof(BusinessInfo);b++){ printf(\"Elso jo!\");if(IsPlayerInRangeOfPoint(playerid,2.0,BusinessInfo[bEntranceX], BusinessInfo[bEntranceY], BusinessInfo[bEntranceZ])){ printf(\"Masodik jo!\");if(BusinessInfo[bHasznalatban] == 0){ printf(\"Harmadik jo!\"); format(TextString, sizeof(TextString), \"%s\", BusinessInfo[bNev]); TextDrawSetString(BejaratiText, TextString); TextDrawShowForPlayer(playerid, BejaratiText); TextDrawShowForPlayer(playerid, BejaratiBox);}if(BusinessInfo[bHasznalatban] == 1){ printf(\"Harmadik jo!\"); format(TextString, sizeof(TextString), \"%s Tulajdonos: %s\", BusinessInfo[bNev], BusinessInfo[bTulajdonos]); TextDrawSetString(KijaratiText, TextString); TextDrawShowForPlayer(playerid, KijaratiText); TextDrawShowForPlayer(playerid, BejaratiBox);}}else{TextDrawHideForPlayer(playerid, KijaratiText), TextDrawHideForPlayer(playerid, BejaratiText), TextDrawHideForPlayer(playerid, BejaratiBox);}if(IsPlayerInRangeOfPoint(playerid,2.0,BusinessInfo[bExitX], BusinessInfo[bExitY], BusinessInfo[bExitZ])){format(TextString, sizeof(TextString), \"Kilepes az utcara innen: %s\", BusinessInfo[bNev]);TextDrawSetString(KijaratiText, TextString);TextDrawShowForPlayer(playerid, KijaratiText);TextDrawShowForPlayer(playerid, BejaratiBox);}else{TextDrawHideForPlayer(playerid, KijaratiText), TextDrawHideForPlayer(playerid, BejaratiText), TextDrawHideForPlayer(playerid, BejaratiBox);}}
for(new b = 1;b < sizeof(BusinessInfo);bö+)